Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2004-04-19 10:33:53 -0400
committerJean Michel-Lemieux2004-04-19 10:33:53 -0400
commit29cb0896b07d3df12e999da93c5009a46b02c7a8 (patch)
treecd0e2193fdf3b92a99a1a1714f1faa6418350338
parenta0db17d1b2a1d6c2248d7d914691880e7079bae5 (diff)
downloadeclipse.platform.team-29cb0896b07d3df12e999da93c5009a46b02c7a8.tar.gz
eclipse.platform.team-29cb0896b07d3df12e999da93c5009a46b02c7a8.tar.xz
eclipse.platform.team-29cb0896b07d3df12e999da93c5009a46b02c7a8.zip
Fix compile error. These tests are run anymore though :)
-rw-r--r--tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/ModuleTest.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/ModuleTest.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/ModuleTest.java
index 7a9964e9e..ec68a9bd5 100644
--- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/ModuleTest.java
+++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/ModuleTest.java
@@ -26,6 +26,7 @@ import org.eclipse.team.internal.ccvs.core.client.Command.LocalOption;
import org.eclipse.team.internal.ccvs.core.resources.*;
import org.eclipse.team.tests.ccvs.core.CVSTestSetup;
import org.eclipse.team.tests.ccvs.core.EclipseTest;
+import org.osgi.framework.Bundle;
/**
* This class tests the Command framework using simple CVS commands
@@ -56,14 +57,8 @@ public class ModuleTest extends EclipseTest {
if (isSetUp) return;
// upload the modules definitions file
- PluginDescriptor testPlugin = (PluginDescriptor)Platform.getPluginRegistry().getPluginDescriptor("org.eclipse.team.tests.cvs.core");
- String filePath = testPlugin.getLocation().concat(RESOURCE_PATH + "CVSROOT/modules");
- URL url = null;
- try {
- url = new URL (filePath);
- } catch (java.net.MalformedURLException e) {
- assertTrue("Bad URL for " + filePath, true);
- }
+ Bundle b = Platform.getBundle("org.eclipse.team.tests.cvs.core");
+ URL url = b.getEntry(RESOURCE_PATH + "CVSROOT/modules");
waitMsec(1000);

Back to the top