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 ConditionEvaluationResultevaluate(DisabledIfEnvironmentVariable annotation) protected StringgetEnvironmentVariable(String name) Get the value of the named environment variable.protected ConditionEvaluationResultMethods inherited from class org.junit.jupiter.api.condition.AbstractRepeatableAnnotationCondition
evaluateExecutionCondition
-
Field Details
-
ENABLED
-
-
Constructor Details
-
DisabledIfEnvironmentVariableCondition
DisabledIfEnvironmentVariableCondition()
-
-
Method Details
-
getNoDisabledConditionsEncounteredResult
-
evaluate
- Specified by:
evaluatein 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.
-