Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-10-10 18:02:52 +0000
committerJohn Arthorne2008-10-10 18:02:52 +0000
commitbdeecd491c79338e7516f720da6d1a98025b73a5 (patch)
treef3d2bd66414de7e718717a4448e18cc33f65555e /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core
parent92e35c653a03044c25861b380a764f02130f2941 (diff)
downloadrt.equinox.p2-bdeecd491c79338e7516f720da6d1a98025b73a5.tar.gz
rt.equinox.p2-bdeecd491c79338e7516f720da6d1a98025b73a5.tar.xz
rt.equinox.p2-bdeecd491c79338e7516f720da6d1a98025b73a5.zip
Test additional scenarios in URL>URI conversion
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/URIUtilTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/URIUtilTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/URIUtilTest.java
index 42f69743c..079caa13d 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/URIUtilTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/URIUtilTest.java
@@ -53,6 +53,8 @@ public class URIUtilTest extends AbstractProvisioningTest {
assertEquals("1.1", new URI("http://foo.bar/a%20b"), URIUtil.toURI(new URL("http://foo.bar/a b")));
assertEquals("1.2", new URI("http://foo.bar/a#b%20c"), URIUtil.toURI(new URL("http://foo.bar/a#b c")));
+ //% characters
+ assertEquals("1.1", new URI("http://foo.bar/a%25b"), URIUtil.toURI(new URL("http://foo.bar/a%b")));
}
/**
@@ -63,5 +65,6 @@ public class URIUtilTest extends AbstractProvisioningTest {
if (!isWindows())
return;
assertEquals("1.1", new URI("file:/c:/foo/bar.txt"), URIUtil.toURI(new URL("file:c:/foo/bar.txt")));
+ assertEquals("1.1", new URI("file:/c:/foo/bar.txt"), URIUtil.toURI(new URL("file:/c:/foo/bar.txt")));
}
}

Back to the top