@API(status=STABLE, since="5.0") public class ConditionEvaluationResult extends Object
Modifier and Type | Method | 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()
Copyright © 2019. All rights reserved.