Interface ResultOfExceptionalCall<T extends Exception>

Type Parameters:
T - the type of the expected exception
All Superinterfaces:
Result<ResultOfExceptionalCall<T>,ActualException<T>,TestOfExceptionalCall<T>,ExpectedException<T>>
All Known Implementing Classes:
BasicResultOfExceptionalCall

public interface ResultOfExceptionalCall<T extends Exception> extends Result<ResultOfExceptionalCall<T>,ActualException<T>,TestOfExceptionalCall<T>,ExpectedException<T>>

A type representing the result of a throwable call.

  • Method Details

    • exception

      default T exception()

      If the test resulted in the Test.expected() expected exception}, this methods returns this exception. Otherwise this method returns null.

      Returns:
      the exception or null