Class DisabledCondition
java.lang.Object
org.junit.jupiter.engine.extension.DisabledCondition
- All Implemented Interfaces:
ExecutionCondition
,Extension
ExecutionCondition
that supports the @Disabled
annotation.- Since:
- 5.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionContainers/tests are disabled if@Disabled
is present on the test class or method.private ConditionEvaluationResult
toResult
(AnnotatedElement element, Disabled annotation)
-
Field Details
-
ENABLED
-
-
Constructor Details
-
DisabledCondition
DisabledCondition()
-
-
Method Details
-
evaluateExecutionCondition
Containers/tests are disabled if@Disabled
is present on the test class or method.- Specified by:
evaluateExecutionCondition
in interfaceExecutionCondition
- Parameters:
context
- the current extension context; nevernull
- Returns:
- the result of evaluating this condition; never
null
-
toResult
-