<T extends Throwable> ThrowableAsserter.ThrownError<T,R> |
ThrowableAsserter.whenThrows(Class<T> errorType) |
Returns an object for configuring the assertions that should be performed when an instance of a specific error type is thrown.
|
static <T extends Throwable> ThrowableAsserter.ThrownError<T,Void> |
ThrowableAsserter.whenThrows(Class<T> errorType,
Executable executable) |
Returns an object for configuring the assertions that should be performed when an instance of a specific error type is thrown when an
Executable is run.
|
static <T extends Throwable,R> ThrowableAsserter.ThrownError<T,R> |
ThrowableAsserter.whenThrows(Class<T> errorType,
ThrowingSupplier<R> supplier) |
Returns an object for configuring the assertions that should be performed when an instance of a specific error type is thrown when the result
of a ThrowingSupplier is retrieved.
|
<T extends Throwable> ThrowableAsserter.ThrownError<T,R> |
ThrowableAsserter.whenThrowsExactly(Class<T> errorType) |
Returns an object for configuring the assertions that should be performed when an exact instance of a specific error type is thrown.
|
static <T extends Throwable> ThrowableAsserter.ThrownError<T,Void> |
ThrowableAsserter.whenThrowsExactly(Class<T> errorType,
Executable executable) |
Returns an object for configuring the assertions that should be performed when an exact instance of a specific error type is thrown when an
Executable is run.
|
static <T extends Throwable,R> ThrowableAsserter.ThrownError<T,R> |
ThrowableAsserter.whenThrowsExactly(Class<T> errorType,
ThrowingSupplier<R> supplier) |
Returns an object for configuring the assertions that should be performed when an exact instance of a specific error type is thrown when the
result of a ThrowingSupplier is retrieved.
|