Interface TestOfExceptionalCall<T extends Exception>
- Type Parameters:
T- the type of the expected exception
- All Superinterfaces:
Test<TestOfExceptionalCall<T>,ExpectedException<T>, ResultOfExceptionalCall<T>, ActualException<T>>
- All Known Implementing Classes:
BasicTestOfExceptionalCall
public interface TestOfExceptionalCall<T extends Exception>
extends Test<TestOfExceptionalCall<T>,ExpectedException<T>,ResultOfExceptionalCall<T>,ActualException<T>>
A type for testing the throwing behavior of callables.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTestOfExceptionalCall.Builder<T extends Exception>A builder for tests of throwable calls. -
Method Summary
Modifier and TypeMethodDescriptionTests if the callable throws an exception and if the exception is as expected.
-
Method Details
-
run
Tests if the callable throws an exception and if the exception is as expected.- Parameters:
callable- the callable under test- Returns:
- the result of the test
-