Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2009-01-09 16:30:10 +0000
committerMarc Khouzam2009-01-09 16:30:10 +0000
commit28e80032cf418f7c0662ca3e35a159593fbc8844 (patch)
tree9abddee157d796e8bc206282dca983a25c6dd66d /dsf-gdb
parenta55cb22fe57b96783dd46a319fa622d8536d1ea6 (diff)
downloadorg.eclipse.cdt-28e80032cf418f7c0662ca3e35a159593fbc8844.tar.gz
org.eclipse.cdt-28e80032cf418f7c0662ca3e35a159593fbc8844.tar.xz
org.eclipse.cdt-28e80032cf418f7c0662ca3e35a159593fbc8844.zip
[251185] TestClassRunner JUnit class no longer exists. Replace it with BlockJUnit4ClassRunner
Diffstat (limited to 'dsf-gdb')
-rw-r--r--dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BackgroundRunner.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BackgroundRunner.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BackgroundRunner.java
index 15767dea4d3..d63cd893c5d 100644
--- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BackgroundRunner.java
+++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BackgroundRunner.java
@@ -17,15 +17,15 @@ import org.eclipse.core.runtime.QualifiedName;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.swt.widgets.Display;
-import org.junit.internal.runners.InitializationError;
import org.junit.runner.notification.RunNotifier;
+import org.junit.runners.BlockJUnit4ClassRunner;
+import org.junit.runners.model.InitializationError;
/**
* This runner starts an eclipse job ro run the tests, so as
* to release the UI thread.
*/
-@SuppressWarnings("restriction")
-public class BackgroundRunner extends TestClassRunner {
+public class BackgroundRunner extends BlockJUnit4ClassRunner {
public BackgroundRunner(Class<?> klass) throws InitializationError {
super(klass);
@@ -126,7 +126,7 @@ public class BackgroundRunner extends TestClassRunner {
// Signal the interrupt condition that we are done here
// and it can cleanup whatever necessary.
- condition.dispose();
+ if (condition != null) condition.dispose();
return isTimedOut;
}

Back to the top