public class IgnoredTestsRunnerBuilder
extends org.junit.internal.builders.AllDefaultPossibilitiesBuilder
Runners that run only tests annotated with Ignore. For
JUnit3 tests, this is limited to class-level granularity: applying @Ignore to a JUnit3
test method has no effect. Tests annotated with RunWith are run only if they are Suites or are @RunWith(JUnit4.class), as in general it's impossible to know how a
custom runner will behave. Most notably, this means Parameterized tests are not run
(yet).
AllDefaultPossibilitiesBuilder builds a Runner by querying the 5 sub-builders
obtained from calling ignoredBuilder(), annotatedBuilder(), suiteMethodBuilder(), junit3Builder(), and junit4Builder() in turn until one of
them returns a non-null runner. Here we override some of these methods to return RunnerBuilders that create runners that invert the sense
of Ignore annotations.
| Modifier and Type | Method and Description |
|---|---|
protected org.junit.internal.builders.AnnotatedBuilder |
annotatedBuilder() |
protected org.junit.internal.builders.IgnoredBuilder |
ignoredBuilder() |
protected org.junit.internal.builders.JUnit3Builder |
junit3Builder() |
protected org.junit.internal.builders.JUnit4Builder |
junit4Builder() |
runnerForClass, suiteMethodBuilderprotected org.junit.internal.builders.IgnoredBuilder ignoredBuilder()
ignoredBuilder in class org.junit.internal.builders.AllDefaultPossibilitiesBuilderprotected org.junit.internal.builders.AnnotatedBuilder annotatedBuilder()
annotatedBuilder in class org.junit.internal.builders.AllDefaultPossibilitiesBuilderprotected org.junit.internal.builders.JUnit3Builder junit3Builder()
junit3Builder in class org.junit.internal.builders.AllDefaultPossibilitiesBuilderprotected org.junit.internal.builders.JUnit4Builder junit4Builder()
junit4Builder in class org.junit.internal.builders.AllDefaultPossibilitiesBuilder