Extension
@FunctionalInterface @API(status=STABLE, since="5.0") public interface ExecutionCondition extends Extension
ExecutionCondition
defines the Extension
API for
programmatic, conditional test execution.
An ExecutionCondition
is
evaluated
to determine if a given container or test should be executed based on the
supplied ExtensionContext
.
Implementations must provide a no-args constructor.
Disabled
Modifier and Type | Method | Description |
---|---|---|
ConditionEvaluationResult |
evaluateExecutionCondition(ExtensionContext context) |
Evaluate this condition for the supplied
ExtensionContext . |
ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext context)
ExtensionContext
.
An enabled result indicates that the container or test should be executed; whereas, a disabled result indicates that the container or test should not be executed.
context
- the current extension context; never null
null