Package org.junit.jupiter.api.condition
Class EnabledIfEnvironmentVariableCondition
java.lang.Object
org.junit.jupiter.api.condition.AbstractRepeatableAnnotationCondition<EnabledIfEnvironmentVariable>
org.junit.jupiter.api.condition.EnabledIfEnvironmentVariableCondition
- All Implemented Interfaces:
ExecutionCondition
,Extension
class EnabledIfEnvironmentVariableCondition
extends AbstractRepeatableAnnotationCondition<EnabledIfEnvironmentVariable>
- Since:
- 5.1
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ConditionEvaluationResult
evaluate
(EnabledIfEnvironmentVariable annotation) protected String
getEnvironmentVariable
(String name) Get the value of the named environment variable.protected ConditionEvaluationResult
Methods inherited from class org.junit.jupiter.api.condition.AbstractRepeatableAnnotationCondition
evaluateExecutionCondition
-
Field Details
-
ENABLED
-
-
Constructor Details
-
EnabledIfEnvironmentVariableCondition
EnabledIfEnvironmentVariableCondition()
-
-
Method Details
-
getNoDisabledConditionsEncounteredResult
-
evaluate
- Specified by:
evaluate
in classAbstractRepeatableAnnotationCondition<EnabledIfEnvironmentVariable>
-
getEnvironmentVariable
Get the value of the named environment variable.The default implementation simply delegates to
System.getenv(String)
. Can be overridden in a subclass for testing purposes.
-