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 interfaceScriptExecutionCondition.EvaluatorDeprecated.Evaluates scripts and returns a conditional evaluation result.(package private) static classScriptExecutionCondition.ThrowingEvaluatorDeprecated.Evaluator implementation that always throws anExtensionConfigurationException.
-
Field Summary
Fields Modifier and Type Field Description private static ConditionEvaluationResultENABLED_NO_ANNOTATIONDeprecated.private static ConditionEvaluationResultENABLED_NO_ELEMENTDeprecated.private ScriptExecutionCondition.EvaluatorevaluatorDeprecated.private static java.lang.StringEVALUATOR_CLASS_NAMEDeprecated.
-
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 ScriptcreateDisabledIfScriptOrNull(java.lang.reflect.AnnotatedElement annotatedElement)Deprecated.private ScriptcreateEnabledIfScriptOrNull(java.lang.reflect.AnnotatedElement annotatedElement)Deprecated.private java.lang.StringcreateSource(java.lang.String[] lines)Deprecated.ConditionEvaluationResultevaluateExecutionCondition(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:ExecutionConditionEvaluate 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:
evaluateExecutionConditionin 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.
-
-