@API(status=STABLE,
since="5.7")
public class IgnoreCondition
extends java.lang.Object
implements ExecutionCondition
ExecutionCondition that supports JUnit 4's @Ignore
annotation.@Ignore,
@Disabled,
evaluateExecutionCondition(ExtensionContext),
EnableJUnit4MigrationSupport| Modifier and Type | Field and Description |
|---|---|
private static ConditionEvaluationResult |
ENABLED |
| Constructor and Description |
|---|
IgnoreCondition() |
| Modifier and Type | Method and Description |
|---|---|
ConditionEvaluationResult |
evaluateExecutionCondition(ExtensionContext context)
Containers/tests are disabled if
@Ignore is present on
the test class or method. |
private ConditionEvaluationResult |
toResult(java.lang.reflect.AnnotatedElement element,
org.junit.Ignore annotation) |
private static final ConditionEvaluationResult ENABLED
public ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext context)
@Ignore is present on
the test class or method.evaluateExecutionCondition in interface ExecutionConditioncontext - the current extension context; never nullnullprivate ConditionEvaluationResult toResult(java.lang.reflect.AnnotatedElement element, org.junit.Ignore annotation)