Module org.junit.jupiter.api
Package org.junit.jupiter.api.condition
Class DisabledIfEnvironmentVariableCondition
java.lang.Object
org.junit.jupiter.api.condition.AbstractRepeatableAnnotationCondition<DisabledIfEnvironmentVariable>
org.junit.jupiter.api.condition.DisabledIfEnvironmentVariableCondition
- All Implemented Interfaces:
ExecutionCondition
,Extension
class DisabledIfEnvironmentVariableCondition
extends AbstractRepeatableAnnotationCondition<DisabledIfEnvironmentVariable>
- Since:
- 5.1
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ConditionEvaluationResult
evaluate
(DisabledIfEnvironmentVariable 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
-
DisabledIfEnvironmentVariableCondition
DisabledIfEnvironmentVariableCondition()
-
-
Method Details
-
getNoDisabledConditionsEncounteredResult
-
evaluate
- Specified by:
evaluate
in classAbstractRepeatableAnnotationCondition<DisabledIfEnvironmentVariable>
-
getEnvironmentVariable
Get the value of the named environment variable.The default implementation delegates to
System.getenv(String)
. Can be overridden in a subclass for testing purposes.
-