diff options
author | DJ Houghton | 2008-11-25 19:51:23 +0000 |
---|---|---|
committer | DJ Houghton | 2008-11-25 19:51:23 +0000 |
commit | 9532e99fe38608885b871fcd2d361020b89f12c0 (patch) | |
tree | 03c7edfe0d37b0a9e7798456585ecfe1c59a5a53 /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java | |
parent | 4722ab4bc3574c191036f1014c05334977736d35 (diff) | |
download | rt.equinox.p2-9532e99fe38608885b871fcd2d361020b89f12c0.tar.gz rt.equinox.p2-9532e99fe38608885b871fcd2d361020b89f12c0.tar.xz rt.equinox.p2-9532e99fe38608885b871fcd2d361020b89f12c0.zip |
Merged path_fun_2008 branch.v20081125_postPathFunMerge
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java index e34957de9..40640360d 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java @@ -10,6 +10,7 @@ package org.eclipse.equinox.p2.tests.touchpoint.eclipse; import java.io.File; import java.io.IOException; +import java.net.URI; import java.util.*; import org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint; import org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util; @@ -83,8 +84,8 @@ public class SetStartLevelActionTest extends AbstractProvisioningTest { assertTrue(isStartLevel(manipulator, osgiTarget, -1)); } - private boolean isStartLevel(Manipulator manipulator, File osgiTarget, int startLevel) throws IOException { - String location = osgiTarget.toURL().toExternalForm(); + private boolean isStartLevel(Manipulator manipulator, File osgiTarget, int startLevel) { + URI location = osgiTarget.toURI(); BundleInfo[] bundles = manipulator.getConfigData().getBundles(); for (int i = 0; i < bundles.length; i++) { if (location.equals(bundles[i].getLocation()) && (startLevel == bundles[i].getStartLevel())) |