Interface ResultOfExceptionalCall.Builder<T extends Exception>

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

public static interface ResultOfExceptionalCall.Builder<T extends Exception> extends Result.Builder<ResultOfExceptionalCall<T>,ActualException<T>,TestOfExceptionalCall<T>,ExpectedException<T>,ResultOfExceptionalCall.Builder<T>>
  • Method Details

    • actual

      default ResultOfExceptionalCall.Builder<T> actual(T exception, boolean successful)

      Set the actual exception of the correct type and if this exception fulfils the expected throwable.

      Parameters:
      exception - the actual exception
      Returns:
      this bbuilder