Package org.awaitility.core
Class ConditionEvaluationResult
java.lang.Object
org.awaitility.core.ConditionEvaluationResult
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConditionEvaluationResult(boolean successful) Return the result of the condition evaluation as either justtrueorfalse.ConditionEvaluationResult(boolean successful, Throwable throwable, Throwable trace) Fail the condition evaluation due to an exception with an optional trace. -
Method Summary
-
Field Details
-
trace
-
throwable
-
successful
private final boolean successful
-
-
Constructor Details
-
ConditionEvaluationResult
ConditionEvaluationResult(boolean successful) Return the result of the condition evaluation as either justtrueorfalse. Iffalsethis means that the condition could be retried later.- Parameters:
successful-trueorfalse
-
ConditionEvaluationResult
Fail the condition evaluation due to an exception with an optional trace. The purpose of the trace is to identify where in the code (which line) that contained the condition that failed. Note that a trace is independent of thethrowable(i.e. the condition must necessarily have failed with an exception)- Parameters:
throwable- The exception that caused the condition to fail
-
-
Method Details