Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2015-04-03 21:44:49 +0000
committerSergey Prigogin2015-04-03 21:46:40 +0000
commit01776b1d4f335b9c3123bf3c84ba510ffc9d6cd3 (patch)
tree9c93d4a6d865c16ad6bce1f9e99f97f8bd2413b3 /core/org.eclipse.cdt.core.tests/misc
parentbb7af880828b77aedafd029eeb20a1d7ff76e4e8 (diff)
downloadorg.eclipse.cdt-01776b1d4f335b9c3123bf3c84ba510ffc9d6cd3.tar.gz
org.eclipse.cdt-01776b1d4f335b9c3123bf3c84ba510ffc9d6cd3.tar.xz
org.eclipse.cdt-01776b1d4f335b9c3123bf3c84ba510ffc9d6cd3.zip
Cosmetics.
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/misc')
-rw-r--r--core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/utils/UNCPathConverterTest.java32
1 files changed, 16 insertions, 16 deletions
diff --git a/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/utils/UNCPathConverterTest.java b/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/utils/UNCPathConverterTest.java
index 98bbd09b99..655d2edc37 100644
--- a/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/utils/UNCPathConverterTest.java
+++ b/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/utils/UNCPathConverterTest.java
@@ -17,15 +17,15 @@ import java.net.URISyntaxException;
import java.util.Arrays;
import java.util.Collection;
-import junit.framework.JUnit4TestAdapter;
-
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
-import org.junit.runner.RunWith;
import org.junit.Test;
+import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
+import junit.framework.JUnit4TestAdapter;
+
@RunWith(Parameterized.class)
public class UNCPathConverterTest {
private URI testURI;
@@ -41,19 +41,19 @@ public class UNCPathConverterTest {
}
@Parameters(name = "{index}: {0}")
- public static Collection<Object []> testToPathCases() throws URISyntaxException {
- return Arrays.asList(new Object [][] {
- // Without scheme
- {new URI("/foo/bar"), Path.fromOSString("/foo/bar")},
- // With Scheme, no authority
- {new URI("file", "/foo/bar", null), Path.fromOSString("/foo/bar")},
- // With scheme and host
- {new URI("http", "example.com", "/foo/bar", null), Path.fromOSString("//example.com/foo/bar")},
- // With server-based authority
- {new URI("ssh", "user:password", "example.com", 8080, "/foo/bar", null, null), Path.fromOSString("//example.com/foo/bar")},
- // With Registry-based authority
- {new URI("remotetools", "My Connection", "/foo/bar", null, null), Path.fromOSString("//My Connection/foo/bar")}}
- );
+ public static Collection<Object[]> testToPathCases() throws URISyntaxException {
+ return Arrays.asList(new Object[][] {
+ // Without scheme
+ { new URI("/foo/bar"), Path.fromOSString("/foo/bar") },
+ // With Scheme, no authority
+ { new URI("file", "/foo/bar", null), Path.fromOSString("/foo/bar") },
+ // With scheme and host
+ { new URI("http", "example.com", "/foo/bar", null), Path.fromOSString("//example.com/foo/bar") },
+ // With server-based authority
+ { new URI("ssh", "user:password", "example.com", 8080, "/foo/bar", null, null), Path.fromOSString("//example.com/foo/bar") },
+ // With Registry-based authority
+ { new URI("remotetools", "My Connection", "/foo/bar", null, null), Path.fromOSString("//My Connection/foo/bar") }
+ });
}
@Test

Back to the top