Package org.awaitility.core
Class ConditionEvaluationResult
- java.lang.Object
-
- org.awaitility.core.ConditionEvaluationResult
-
class ConditionEvaluationResult extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private booleansuccessfulprivate java.lang.Throwablethrowableprivate java.lang.Throwabletrace
-
Constructor Summary
Constructors Constructor Description ConditionEvaluationResult(boolean successful)Return the result of the condition evaluation as either justtrueorfalse.ConditionEvaluationResult(boolean successful, java.lang.Throwable throwable, java.lang.Throwable trace)Fail the condition evaluation due to an exception with an optional trace.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)(package private) java.lang.ThrowablegetThrowable()(package private) java.lang.ThrowablegetTrace()inthashCode()(package private) booleanhasThrowable()(package private) booleanhasTrace()(package private) booleanisError()(package private) booleanisSuccessful()java.lang.StringtoString()
-
-
-
Constructor Detail
-
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
ConditionEvaluationResult(boolean successful, java.lang.Throwable throwable, java.lang.Throwable trace)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 Detail
-
isSuccessful
boolean isSuccessful()
-
isError
boolean isError()
-
getThrowable
java.lang.Throwable getThrowable()
-
getTrace
java.lang.Throwable getTrace()
-
hasThrowable
boolean hasThrowable()
-
hasTrace
boolean hasTrace()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-