Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2009-04-29 16:51:44 +0000
committerJohn Arthorne2009-04-29 16:51:44 +0000
commitb768465df9e4dda05c88f79d2daf882246d2c591 (patch)
tree1dc89bab516aaa5a27b18c85abb20a981694f6af /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse
parent52dca4a3b544301ff556c4564740307f9cb1b930 (diff)
downloadrt.equinox.p2-b768465df9e4dda05c88f79d2daf882246d2c591.tar.gz
rt.equinox.p2-b768465df9e4dda05c88f79d2daf882246d2c591.tar.xz
rt.equinox.p2-b768465df9e4dda05c88f79d2daf882246d2c591.zip
Bug 268695 [ublisher] Category not exported from update wizard with IBM 1.6 VM
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/updatesite/UpdateSiteTest.java40
1 files changed, 37 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/updatesite/UpdateSiteTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/updatesite/UpdateSiteTest.java
index f559b2099..dfa4d35a5 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/updatesite/UpdateSiteTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/updatesite/UpdateSiteTest.java
@@ -519,7 +519,7 @@ public class UpdateSiteTest extends AbstractProvisioningTest {
a.setURLString("http://foo");
b.setURLString("http://foo");
assertEquals("1.1", a.hashCode(), b.hashCode());
- a.setURLString("http://FOO");
+ a.setURLString("http://FOO/");
assertEquals("1.2", a.hashCode(), b.hashCode());
a.setURLString("foo");
b.setURLString("FoO");
@@ -533,8 +533,42 @@ public class UpdateSiteTest extends AbstractProvisioningTest {
a.setURLString("file:/c:/foo");
assertFalse("1.1", a.equals(b));
b.setURLString("file:/c:/bar");
- assertFalse("1.1", a.equals(b));
- assertFalse("1.1", b.equals(a));
+ assertFalse("1.2", a.equals(b));
+ assertFalse("1.3", b.equals(a));
+ a.setURLString("http://foo");
+ b.setURLString("http://bar/");
+ assertFalse("1.4", b.equals(a));
+ }
+
+ public void testSiteFeatureFileURL() {
+ SiteFeature a = new SiteFeature();
+ SiteFeature b = new SiteFeature();
+ assertEquals("1.0", a, b);
+ a.setURLString("file:/c:/foo");
+ b.setURLString("file:/c:/FOO");
+ if (a.equals(b))
+ assertEquals("1.1", a.hashCode(), b.hashCode());
+ a.setURLString("FILE:/c:/foo");
+ b.setURLString("file:/c:/FOO");
+ if (a.equals(b))
+ assertEquals("1.2", a.hashCode(), b.hashCode());
+ a.setURLString("HTTP://example.com");
+ b.setURLString("HTtP://example.com");
+ if (a.equals(b))
+ assertEquals("1.3", a.hashCode(), b.hashCode());
+ a.setURLString("HTTP://eXaMpLe.com");
+ b.setURLString("HTtP://example.com");
+ if (a.equals(b))
+ assertEquals("1.4", a.hashCode(), b.hashCode());
+ a.setURLString("HTTP://eXaMpLe.com/");
+ b.setURLString("HTtP://example.com");
+ assertEquals(a, b);
+ if (a.equals(b))
+ assertEquals("1.5", a.hashCode(), b.hashCode());
+ a.setURLString("http://localhost");
+ b.setURLString("http://127.0.0.1");
+ if (a.equals(b))
+ assertEquals("1.6", a.hashCode(), b.hashCode());
}
public void testRepoWithFeatureWithNullUpdateURL() {

Back to the top