Class ScriptExecutionCondition
- java.lang.Object
-
- org.junit.jupiter.engine.extension.ScriptExecutionCondition
-
- All Implemented Interfaces:
ExecutionCondition
,Extension
@Deprecated class ScriptExecutionCondition extends java.lang.Object implements ExecutionCondition
Deprecated.- Since:
- 5.1
- See Also:
DisabledIf
,EnabledIf
,evaluateExecutionCondition(ExtensionContext)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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 anExtensionConfigurationException
.
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ScriptExecutionCondition()
Deprecated.ScriptExecutionCondition(java.lang.String evaluatorImplementationName)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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 suppliedExtensionContext
.
-
-
-
Field Detail
-
ENABLED_NO_ELEMENT
private static final ConditionEvaluationResult ENABLED_NO_ELEMENT
Deprecated.
-
ENABLED_NO_ANNOTATION
private static final ConditionEvaluationResult ENABLED_NO_ANNOTATION
Deprecated.
-
EVALUATOR_CLASS_NAME
private static final java.lang.String EVALUATOR_CLASS_NAME
Deprecated.- See Also:
- Constant Field Values
-
evaluator
private final ScriptExecutionCondition.Evaluator evaluator
Deprecated.
-
-
Method Detail
-
evaluateExecutionCondition
public ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext context)
Deprecated.Description copied from interface:ExecutionCondition
Evaluate this condition for the suppliedExtensionContext
.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.
- Specified by:
evaluateExecutionCondition
in interfaceExecutionCondition
- Parameters:
context
- the current extension context; nevernull
- Returns:
- the result of evaluating this condition; never
null
-
createDisabledIfScriptOrNull
private Script createDisabledIfScriptOrNull(java.lang.reflect.AnnotatedElement annotatedElement)
Deprecated.
-
createEnabledIfScriptOrNull
private Script createEnabledIfScriptOrNull(java.lang.reflect.AnnotatedElement annotatedElement)
Deprecated.
-
createSource
private java.lang.String createSource(java.lang.String[] lines)
Deprecated.
-
-