diff options
author | Andrew Niefer | 2010-03-08 21:47:39 +0000 |
---|---|---|
committer | Andrew Niefer | 2010-03-08 21:47:39 +0000 |
commit | 6a95c035a98b690b0cb65833a8092052148fbf91 (patch) | |
tree | 408197907d68d8208cfdd3ecfcd99b711991a9e9 /bundles/org.eclipse.equinox.frameworkadmin.test | |
parent | 13f2b5e27c165b52b33f808a1691a0c15c96a538 (diff) | |
download | rt.equinox.p2-6a95c035a98b690b0cb65833a8092052148fbf91.tar.gz rt.equinox.p2-6a95c035a98b690b0cb65833a8092052148fbf91.tar.xz rt.equinox.p2-6a95c035a98b690b0cb65833a8092052148fbf91.zip |
bug 305046 - source.info contains stale information
Diffstat (limited to 'bundles/org.eclipse.equinox.frameworkadmin.test')
-rw-r--r-- | bundles/org.eclipse.equinox.frameworkadmin.test/src/org/eclipse/equinox/frameworkadmin/tests/SimpleConfiguratorTest.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.frameworkadmin.test/src/org/eclipse/equinox/frameworkadmin/tests/SimpleConfiguratorTest.java b/bundles/org.eclipse.equinox.frameworkadmin.test/src/org/eclipse/equinox/frameworkadmin/tests/SimpleConfiguratorTest.java index 0f6826b6e..779b36a65 100644 --- a/bundles/org.eclipse.equinox.frameworkadmin.test/src/org/eclipse/equinox/frameworkadmin/tests/SimpleConfiguratorTest.java +++ b/bundles/org.eclipse.equinox.frameworkadmin.test/src/org/eclipse/equinox/frameworkadmin/tests/SimpleConfiguratorTest.java @@ -10,6 +10,8 @@ *******************************************************************************/ package org.eclipse.equinox.frameworkadmin.tests; +import java.net.URI; + import java.io.File; import java.io.IOException; import java.net.URISyntaxException; @@ -58,4 +60,19 @@ public class SimpleConfiguratorTest extends AbstractFwkAdminTest { assertContent(bundleTXT, "org.eclipse.equinox.simpleconfigurator"); assertContent(configINI, "org.eclipse.equinox.simpleconfigurator"); } + + public void testBundleInfoEquals() throws Exception { + BundleInfo b1 = new BundleInfo("org.foo", "3.1.0", new URI("plugins/org.foo_3.1.0"), -1, false); + BundleInfo b2 = new BundleInfo("org.foo", "3.1.0", null, -1, false); + BundleInfo b3 = new BundleInfo("org.foo", "3.1.0", URIUtil.fromString("C:/sp ace/plugins/org.foo_3.1.0"), -1, false); + + assertEquals(b1, b2); + assertFalse(b1.equals(b3)); + + b1.setBaseLocation(URIUtil.fromString("C:/sp ace")); + assertEquals(b1, b3); + + b3.setBaseLocation(URIUtil.fromString("C:/sp ace")); + assertEquals(b1, b3); + } } |