1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 12:55:40 +02:00

[251185] TestClassRunner JUnit class no longer exists. Replace it with BlockJUnit4ClassRunner

This commit is contained in:
Marc Khouzam 2009-01-09 16:30:10 +00:00
parent a55cb22fe5
commit 28e80032cf

View file

@ -17,15 +17,15 @@ import org.eclipse.core.runtime.QualifiedName;
import org.eclipse.core.runtime.Status; import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job; import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Display;
import org.junit.internal.runners.InitializationError;
import org.junit.runner.notification.RunNotifier; 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 * This runner starts an eclipse job ro run the tests, so as
* to release the UI thread. * to release the UI thread.
*/ */
@SuppressWarnings("restriction") public class BackgroundRunner extends BlockJUnit4ClassRunner {
public class BackgroundRunner extends TestClassRunner {
public BackgroundRunner(Class<?> klass) throws InitializationError { public BackgroundRunner(Class<?> klass) throws InitializationError {
super(klass); super(klass);
@ -126,7 +126,7 @@ public class BackgroundRunner extends TestClassRunner {
// Signal the interrupt condition that we are done here // Signal the interrupt condition that we are done here
// and it can cleanup whatever necessary. // and it can cleanup whatever necessary.
condition.dispose(); if (condition != null) condition.dispose();
return isTimedOut; return isTimedOut;
} }