AllDefaultPossibilitiesBuilder from JUnit 4 to
ignore certain classes that would otherwise be reported as errors or cause
infinite recursion.
DefensiveAnnotatedBuilder, DefensiveJUnit4Builder, IgnoredClassRunner
| Modifier and Type | Class and Description |
|---|---|
| private static class | DefensiveAllDefaultPossibilitiesBuilder.
Customization of |
| private static class | DefensiveAllDefaultPossibilitiesBuilder.
Customization of |
| private static class | DefensiveAllDefaultPossibilitiesBuilder.
Customization of |
| Modifier and Type | Field and Description |
|---|---|
| private final AnnotatedBuilder | |
| private final IgnoredBuilder | |
| private final JUnit4Builder | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected AnnotatedBuilder | |
| private IgnoringRunnerDecorator | decorateIgnoredTestClass(Runner runner)
Instead of checking for the |
| protected IgnoredBuilder | |
| pack-priv boolean | |
| protected JUnit4Builder | |
| public Runner | runnerForClass(Class<?> testClass)
Overrides org. Override to calculate the correct runner for a test class at runtime. |
| annotatedBuilder | back to summary |
|---|---|
| private final AnnotatedBuilder annotatedBuilder | |
| ignoredBuilder | back to summary |
|---|---|
| private final IgnoredBuilder ignoredBuilder | |
| junit4Builder | back to summary |
|---|---|
| private final JUnit4Builder junit4Builder | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| DefensiveAllDefaultPossibilitiesBuilder | back to summary |
|---|---|
pack-priv DefensiveAllDefaultPossibilitiesBuilder()
| |
| annotatedBuilder | back to summary |
|---|---|
| protected AnnotatedBuilder annotatedBuilder() Overrides org.
| |
| decorateIgnoredTestClass | back to summary |
|---|---|
| private IgnoringRunnerDecorator decorateIgnoredTestClass(Runner runner) Instead of checking for the | |
| ignoredBuilder | back to summary |
|---|---|
| protected IgnoredBuilder ignoredBuilder() Overrides org.
| |
| isIgnored | back to summary |
|---|---|
| pack-priv boolean isIgnored(Runner runner) | |
| junit4Builder | back to summary |
|---|---|
| protected JUnit4Builder junit4Builder() Overrides org.
| |
| runnerForClass | back to summary |
|---|---|
| public Runner runnerForClass(Class<?> testClass) throws Throwable Overrides org. Doc from org. Override to calculate the correct runner for a test class at runtime. | |
AnnotatedBuilder that ignores classes annotated
with @RunWith(JUnitPlatform.class) to avoid infinite recursion.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public @Nullable Runner | buildRunner(Class<? extends Runner> runnerClass, Class<?> testClass)
Overrides org.
|
| DefensiveAnnotatedBuilder | back to summary |
|---|---|
| pack-priv DefensiveAnnotatedBuilder(RunnerBuilder suiteBuilder) | |
| buildRunner | back to summary |
|---|---|
| public @Nullable Runner buildRunner(Class<? extends Runner> runnerClass, Class<?> testClass) throws Exception Overrides org.
| |
JUnit4Builder that ignores classes that do not
contain any test methods in order not to report errors for them.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public @Nullable Runner | runnerForClass(Class<?> testClass)
Overrides org. Override to calculate the correct runner for a test class at runtime. |
| isPotentialJUnit4TestMethod | back to summary |
|---|---|
| private static final Predicate<Method> isPotentialJUnit4TestMethod | |
| DefensiveJUnit4Builder | back to summary |
|---|---|
| private DefensiveJUnit4Builder() | |
| containsTestMethods | back to summary |
|---|---|
| private boolean containsTestMethods(Class<?> testClass) | |
| runnerForClass | back to summary |
|---|---|
| public @Nullable Runner runnerForClass(Class<?> testClass) throws Throwable Overrides org. Doc from org. Override to calculate the correct runner for a test class at runtime. | |
IgnoredBuilder that always returns null.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public @Nullable Runner | runnerForClass(Class<?> testClass)
Overrides org. Override to calculate the correct runner for a test class at runtime. |
| NullIgnoredBuilder | back to summary |
|---|---|
| private NullIgnoredBuilder() | |
| runnerForClass | back to summary |
|---|---|
| public @Nullable Runner runnerForClass(Class<?> testClass) Overrides org. Doc from org. Override to calculate the correct runner for a test class at runtime.
| |