Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2015-04-16 14:14:06 +0000
committerMarkus Keller2015-04-16 14:14:06 +0000
commitb14e4b50627debccbecde1d1d5ed9627a4985e07 (patch)
treee9c4b8600952cd1b49fe9b2d08845429c9c0464d /org.eclipse.debug.tests
parent612432f26e9fd84a2becea6ebb5f94d7d2672ce3 (diff)
downloadeclipse.platform.debug-b14e4b50627debccbecde1d1d5ed9627a4985e07.tar.gz
eclipse.platform.debug-b14e4b50627debccbecde1d1d5ed9627a4985e07.tar.xz
eclipse.platform.debug-b14e4b50627debccbecde1d1d5ed9627a4985e07.zip
Bug 462996: Enable units tests to run on Gerrit
Diffstat (limited to 'org.eclipse.debug.tests')
-rw-r--r--org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/ArgumentParsingTests.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/ArgumentParsingTests.java b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/ArgumentParsingTests.java
index 5e0beea04..d5e85e50e 100644
--- a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/ArgumentParsingTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/ArgumentParsingTests.java
@@ -19,17 +19,16 @@ import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
-import junit.framework.TestCase;
-
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.URIUtil;
import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.tests.TestsPlugin;
import org.eclipse.osgi.service.environment.Constants;
+import junit.framework.TestCase;
+
/**
* Tests {@link org.eclipse.debug.core.DebugPlugin#parseArguments(String)} and
* {@link org.eclipse.debug.core.DebugPlugin#renderArguments(String[], int[])}.
@@ -84,10 +83,7 @@ public class ArgumentParsingTests extends TestCase {
private static void runCommandLine(String commandLine, String[] arguments) throws IOException,
URISyntaxException, CoreException {
- URL classPathUrl = FileLocator.find(TestsPlugin.getDefault().getBundle(), new Path("bin/"), null); //$NON-NLS-1$
- if (classPathUrl == null) { // not running from the workspace, but from the built bundle
- classPathUrl = FileLocator.find(TestsPlugin.getDefault().getBundle(), Path.ROOT, null);
- }
+ URL classPathUrl = ArgumentsPrinter.class.getResource("/"); //$NON-NLS-1$
classPathUrl = FileLocator.toFileURL(classPathUrl);
File classPathFile = URIUtil.toFile(URIUtil.toURI(classPathUrl));

Back to the top