@FunctionalInterface @API(value=Experimental) public interface TestExecutionCondition extends Extension
TestExecutionCondition defines the Extension API for
programmatic, conditional test execution.
A TestExecutionCondition is evaluated
to determine if a given test should be executed based on the supplied
TestExtensionContext.
Implementations must provide a no-args constructor.
ContainerExecutionCondition,
Disabled| Modifier and Type | Method and Description |
|---|---|
ConditionEvaluationResult |
evaluate(TestExtensionContext context)
Evaluate this condition for the supplied
TestExtensionContext. |
ConditionEvaluationResult evaluate(TestExtensionContext context)
TestExtensionContext.
An enabled result indicates that the test should be executed; whereas, a disabled result indicates that the test should not be executed.
context - the current extension context; never nullnull