Class ConditionEvaluationResult

java.lang.Object
org.awaitility.core.ConditionEvaluationResult

class ConditionEvaluationResult extends Object
  • Field Details

    • trace

      private final Throwable trace
    • throwable

      private final Throwable throwable
    • successful

      private final boolean successful
  • Constructor Details

    • ConditionEvaluationResult

      ConditionEvaluationResult(boolean successful)
      Return the result of the condition evaluation as either just true or false. If false this means that the condition could be retried later.
      Parameters:
      successful - true or false
    • ConditionEvaluationResult

      ConditionEvaluationResult(boolean successful, Throwable throwable, 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 the throwable (i.e. the condition must necessarily have failed with an exception)
      Parameters:
      throwable - The exception that caused the condition to fail
  • Method Details

    • isSuccessful

      boolean isSuccessful()
    • isError

      boolean isError()
    • getThrowable

      Throwable getThrowable()
    • getTrace

      Throwable getTrace()
    • hasThrowable

      boolean hasThrowable()
    • hasTrace

      boolean hasTrace()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object