mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
[251185] TestClassRunner JUnit class no longer exists. Replace it with BlockJUnit4ClassRunner
This commit is contained in:
parent
a55cb22fe5
commit
28e80032cf
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue