Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2008-10-10 20:09:25 +0000
committerPascal Rapicault2008-10-10 20:09:25 +0000
commit28d1b5132c895c6904a1cc58870173abdb6b9b85 (patch)
tree2f9baafd4d4aef72a6d1f17021c352919fb2cc2d /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core
parentaf470d73285dfa0b8311ea0d410afdbc5afaffb8 (diff)
downloadrt.equinox.p2-28d1b5132c895c6904a1cc58870173abdb6b9b85.tar.gz
rt.equinox.p2-28d1b5132c895c6904a1cc58870173abdb6b9b85.tar.xz
rt.equinox.p2-28d1b5132c895c6904a1cc58870173abdb6b9b85.zip
test for the removal of extension
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.java5
1 files changed, 4 insertions, 1 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 36753375d..929e741a7 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
@@ -118,8 +118,11 @@ public class URIUtilTest extends AbstractProvisioningTest {
URI uri3 = new URI("file:/foo/bar.zoo/foo");
assertEquals(new URI("file:/foo/bar.zoo/foo"), URIUtil.removeFileExtension(uri3));
+
+ URI uri4 = new URI("file:/C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/testRepo/plugins/org.junit_3.8.2.v200706111738.jar");
+ assertEquals(new URI("file:/C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/testRepo/plugins/org.junit_3.8.2.v200706111738"), URIUtil.removeFileExtension(uri4));
} catch (URISyntaxException e) {
- System.out.println("dsad");
+ fail("URI syntax exception", e);
}
}
}

Back to the top