class DisabledIfEnvironmentVariableCondition extends AbstractRepeatableAnnotationCondition<DisabledIfEnvironmentVariable>
DisabledIfEnvironmentVariable| Modifier and Type | Field and Description |
|---|---|
private static ConditionEvaluationResult |
ENABLED |
| Constructor and Description |
|---|
DisabledIfEnvironmentVariableCondition() |
| Modifier and Type | Method and Description |
|---|---|
protected ConditionEvaluationResult |
evaluate(DisabledIfEnvironmentVariable annotation) |
protected java.lang.String |
getEnvironmentVariable(java.lang.String name)
Get the value of the named environment variable.
|
protected ConditionEvaluationResult |
getNoDisabledConditionsEncounteredResult() |
evaluateExecutionConditionprivate static final ConditionEvaluationResult ENABLED
protected ConditionEvaluationResult getNoDisabledConditionsEncounteredResult()
protected ConditionEvaluationResult evaluate(DisabledIfEnvironmentVariable annotation)
evaluate in class AbstractRepeatableAnnotationCondition<DisabledIfEnvironmentVariable>protected java.lang.String getEnvironmentVariable(java.lang.String name)
The default implementation simply delegates to
System.getenv(String). Can be overridden in a subclass for
testing purposes.