ExecutionCondition.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final Optional |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ConditionEvaluationResult | |
| public static ConditionEvaluationResult | Returns: a disabledConditionEvaluationResult with the given reason(s)
or an empty reason if the reasons are unknownthe default reason why the container or test should be disabled;
may be reason, @Nullable String null or blank if the default reason is unknownthe custom reason why the container or test should be
disabled; may be customReason)null or blank if the custom reason is unknownFactory for creating disabled results with custom reasons added by the user. |
| public static ConditionEvaluationResult | |
| public Optional | |
| public boolean | Returns: true if the container or test should be disabledWhether the container or test should be disabled. |
| public String |
| enabled | back to summary |
|---|---|
| private final boolean enabled | |
| reason | back to summary |
|---|---|
| private final Optional<String> reason | |
| ConditionEvaluationResult | back to summary |
|---|---|
| private ConditionEvaluationResult(boolean enabled, @Nullable String reason) | |
| disabled | back to summary |
|---|---|
| public static ConditionEvaluationResult disabled(@Nullable String reason) Factory for creating disabled results.
| |
| disabled | back to summary |
|---|---|
| public static ConditionEvaluationResult disabled(@Nullable String reason, @Nullable String customReason) Factory for creating disabled results with custom reasons added by the user. If non-blank default and custom reasons are provided, they will be
concatenated using the format:
| |
| enabled | back to summary |
|---|---|
| public static ConditionEvaluationResult enabled(@Nullable String reason) Factory for creating enabled results.
| |
| getReason | back to summary |
|---|---|
| public Optional Get the reason why the container or test should be enabled or disabled, if available. | |
| isDisabled | back to summary |
|---|---|
| public boolean isDisabled() Whether the container or test should be disabled.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |