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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceResultOfExceptionalCall.Builder<T extends Exception>A builder for results of throwable calls. -
Method Summary
Modifier and TypeMethodDescriptiondefault TIf the test resulted in the Test.expected() expected exception}, this methods returns this exception.
-
Method Details
-
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
-