Module org.junit.jupiter.api
Package org.junit.jupiter.api.extension
Class ConditionEvaluationResult
- java.lang.Object
-
- org.junit.jupiter.api.extension.ConditionEvaluationResult
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConditionEvaluationResultdisabled(String reason)Factory for creating disabled results.static ConditionEvaluationResultenabled(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.booleanisDisabled()Whether the container or test should be disabled.StringtoString()
-
-
-
Method Detail
-
enabled
public static ConditionEvaluationResult enabled(String reason)
Factory for creating enabled results.- Parameters:
reason- the reason why the container or test should be enabled- Returns:
- an enabled
ConditionEvaluationResultwith the given reason
-
disabled
public static ConditionEvaluationResult disabled(String reason)
Factory for creating disabled results.- Parameters:
reason- the reason why the container or test should be disabled- Returns:
- a disabled
ConditionEvaluationResultwith the given reason
-
isDisabled
public boolean isDisabled()
Whether the container or test should be disabled.- Returns:
trueif the container or test should be disabled
-
getReason
public Optional<String> getReason()
Get the reason why the container or test should be enabled or disabled, if available.
-
-