mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 21:45:22 +02:00
Cosmetics.
Change-Id: If8bd6e3abbc8160666ba45bacbb52aeb49bc6109
This commit is contained in:
parent
bb7af88082
commit
01776b1d4f
1 changed files with 16 additions and 16 deletions
|
@ -17,15 +17,15 @@ import java.net.URISyntaxException;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import junit.framework.JUnit4TestAdapter;
|
|
||||||
|
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.Path;
|
import org.eclipse.core.runtime.Path;
|
||||||
import org.junit.runner.RunWith;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.junit.runner.RunWith;
|
||||||
import org.junit.runners.Parameterized;
|
import org.junit.runners.Parameterized;
|
||||||
import org.junit.runners.Parameterized.Parameters;
|
import org.junit.runners.Parameterized.Parameters;
|
||||||
|
|
||||||
|
import junit.framework.JUnit4TestAdapter;
|
||||||
|
|
||||||
@RunWith(Parameterized.class)
|
@RunWith(Parameterized.class)
|
||||||
public class UNCPathConverterTest {
|
public class UNCPathConverterTest {
|
||||||
private URI testURI;
|
private URI testURI;
|
||||||
|
@ -41,19 +41,19 @@ public class UNCPathConverterTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Parameters(name = "{index}: {0}")
|
@Parameters(name = "{index}: {0}")
|
||||||
public static Collection<Object []> testToPathCases() throws URISyntaxException {
|
public static Collection<Object[]> testToPathCases() throws URISyntaxException {
|
||||||
return Arrays.asList(new Object [][] {
|
return Arrays.asList(new Object[][] {
|
||||||
// Without scheme
|
// Without scheme
|
||||||
{new URI("/foo/bar"), Path.fromOSString("/foo/bar")},
|
{ new URI("/foo/bar"), Path.fromOSString("/foo/bar") },
|
||||||
// With Scheme, no authority
|
// With Scheme, no authority
|
||||||
{new URI("file", "/foo/bar", null), Path.fromOSString("/foo/bar")},
|
{ new URI("file", "/foo/bar", null), Path.fromOSString("/foo/bar") },
|
||||||
// With scheme and host
|
// With scheme and host
|
||||||
{new URI("http", "example.com", "/foo/bar", null), Path.fromOSString("//example.com/foo/bar")},
|
{ new URI("http", "example.com", "/foo/bar", null), Path.fromOSString("//example.com/foo/bar") },
|
||||||
// With server-based authority
|
// With server-based authority
|
||||||
{new URI("ssh", "user:password", "example.com", 8080, "/foo/bar", null, null), Path.fromOSString("//example.com/foo/bar")},
|
{ new URI("ssh", "user:password", "example.com", 8080, "/foo/bar", null, null), Path.fromOSString("//example.com/foo/bar") },
|
||||||
// With Registry-based authority
|
// With Registry-based authority
|
||||||
{new URI("remotetools", "My Connection", "/foo/bar", null, null), Path.fromOSString("//My Connection/foo/bar")}}
|
{ new URI("remotetools", "My Connection", "/foo/bar", null, null), Path.fromOSString("//My Connection/foo/bar") }
|
||||||
);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Add table
Reference in a new issue