Modifier and Type | Method and Description |
---|---|
static ConditionEvaluationResult |
disabled(String reason)
Factory for creating disabled results.
|
static ConditionEvaluationResult |
enabled(String reason)
Factory for creating enabled results.
|
Optional<String> |
getReason()
Get the reason why the container or test should be enabled or disabled,
if available.
|
boolean |
isDisabled()
Whether the container or test should be disabled.
|
String |
toString() |
public static ConditionEvaluationResult enabled(String reason)
reason
- the reason why the container or test should be enabledConditionEvaluationResult
with the given reasonpublic static ConditionEvaluationResult disabled(String reason)
reason
- the reason why the container or test should be disabledConditionEvaluationResult
with the given reasonpublic boolean isDisabled()
true
if the container or test should be disabledpublic Optional<String> getReason()