Interface Failure


public interface Failure
A failure provides the details of a failure that happened during the execution of a test case.

The failure can be:

  • an assertion failure: an assertion failed
  • an error failure: an expected error occured
Author:
Julien Viet
  • Method Details

    • isError

      boolean isError()
      Returns:
      true if the failure is an error failure otherwise it is an assertion failure
    • message

      String message()
      Returns:
      the error message
    • stackTrace

      String stackTrace()
      Returns:
      the stack trace
    • cause

      Throwable cause()
      Returns:
      the underlying exception causing this failure, it may be null