1
|
1 |
/**
|
|
2 |
*
|
|
3 |
*/
|
|
4 |
package org.junit.internal.requests;
|
|
5 |
|
|
6 |
import org.junit.runner.Description;
|
|
7 |
import org.junit.runner.Runner;
|
|
8 |
import org.junit.runner.notification.RunNotifier;
|
|
9 |
|
|
10 |
public class IgnoredClassRunner extends Runner {
|
|
11 |
private final Class<?> fTestClass;
|
|
12 |
|
|
13 |
public IgnoredClassRunner(Class<?> testClass) {
|
|
14 |
fTestClass= testClass;
|
|
15 |
}
|
|
16 |
|
|
17 |
@Override
|
|
18 |
public void run(RunNotifier notifier) {
|
|
19 |
notifier.fireTestIgnored(getDescription());
|
|
20 |
}
|
|
21 |
|
|
22 |
@Override
|
|
23 |
public Description getDescription() {
|
|
24 |
return Description.createSuiteDescription(fTestClass);
|
|
25 |
}
|
|
26 |
} |