@Deprecated class ScriptExecutionCondition extends java.lang.Object implements ExecutionCondition
DisabledIf,
EnabledIf,
evaluateExecutionCondition(ExtensionContext)| Modifier and Type | Class and Description |
|---|---|
(package private) static interface |
ScriptExecutionCondition.Evaluator
Deprecated.
Evaluates scripts and returns a conditional evaluation result.
|
(package private) static class |
ScriptExecutionCondition.ThrowingEvaluator
Deprecated.
Evaluator implementation that always throws an
ExtensionConfigurationException. |
| Modifier and Type | Field and Description |
|---|---|
private static ConditionEvaluationResult |
ENABLED_NO_ANNOTATION
Deprecated.
|
private static ConditionEvaluationResult |
ENABLED_NO_ELEMENT
Deprecated.
|
private ScriptExecutionCondition.Evaluator |
evaluator
Deprecated.
|
private static java.lang.String |
EVALUATOR_CLASS_NAME
Deprecated.
|
| Constructor and Description |
|---|
ScriptExecutionCondition()
Deprecated.
|
ScriptExecutionCondition(java.lang.String evaluatorImplementationName)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
private Script |
createDisabledIfScriptOrNull(java.lang.reflect.AnnotatedElement annotatedElement)
Deprecated.
|
private Script |
createEnabledIfScriptOrNull(java.lang.reflect.AnnotatedElement annotatedElement)
Deprecated.
|
private java.lang.String |
createSource(java.lang.String[] lines)
Deprecated.
|
ConditionEvaluationResult |
evaluateExecutionCondition(ExtensionContext context)
Deprecated.
Evaluate this condition for the supplied
ExtensionContext. |
private static final ConditionEvaluationResult ENABLED_NO_ELEMENT
private static final ConditionEvaluationResult ENABLED_NO_ANNOTATION
private static final java.lang.String EVALUATOR_CLASS_NAME
private final ScriptExecutionCondition.Evaluator evaluator
ScriptExecutionCondition()
ScriptExecutionCondition(java.lang.String evaluatorImplementationName)
public ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext context)
ExecutionConditionExtensionContext.
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.
evaluateExecutionCondition in interface ExecutionConditioncontext - the current extension context; never nullnullprivate Script createDisabledIfScriptOrNull(java.lang.reflect.AnnotatedElement annotatedElement)
private Script createEnabledIfScriptOrNull(java.lang.reflect.AnnotatedElement annotatedElement)
private java.lang.String createSource(java.lang.String[] lines)