public class EnabledIfCondition extends AbstractExpressionEvaluatingCondition
EnabledIfCondition
is an org.junit.jupiter.api.extension.ExecutionCondition
that supports the @EnabledIf
annotation when using the Spring
TestContext Framework in conjunction with JUnit 5's Jupiter programming model.
Any attempt to use the EnabledIfCondition
without the presence of
@EnabledIf
will result in an enabled
ConditionEvaluationResult
.
EnabledIf
,
DisabledIf
,
SpringExtension
Constructor and Description |
---|
EnabledIfCondition() |
Modifier and Type | Method and Description |
---|---|
ConditionEvaluationResult |
evaluateExecutionCondition(ExtensionContext context)
Containers and tests are enabled if
@EnabledIf is present on the
corresponding test class or test method and the configured expression
evaluates to true . |
evaluateAnnotation