Uses of Class
org.assertj.core.api.ThrowableTypeAssert
Packages that use ThrowableTypeAssert
-
Uses of ThrowableTypeAssert in org.assertj.core.api
Methods in org.assertj.core.api that return ThrowableTypeAssertModifier and TypeMethodDescriptionstatic <T extends Throwable>
ThrowableTypeAssert<T>Assertions.assertThatExceptionOfType
(Class<? extends T> exceptionType) Entry point to check that an exception of type T is thrown by a giventhrowingCallable
which allows to chain assertions on the thrown exception.static <T extends Throwable>
ThrowableTypeAssert<T>AssertionsForClassTypes.assertThatExceptionOfType
(Class<? extends T> exceptionType) Entry point to check that an exception of type T is thrown by a giventhrowingCallable
which allows to chain assertions on the thrown exception.default <T extends Throwable>
ThrowableTypeAssert<T>WithAssertions.assertThatExceptionOfType
(Class<? extends T> exceptionType) Entry point to check that an exception of type T is thrown by a giventhrowingCallable
which allows to chain assertions on the thrown exception.Assertions.assertThatIllegalArgumentException()
Assertions.assertThatIllegalStateException()
Alias forAssertions.assertThatExceptionOfType(Class)
forIllegalStateException
.static ThrowableTypeAssert<IOException>
Assertions.assertThatIOException()
Alias forAssertions.assertThatExceptionOfType(Class)
forIOException
.Assertions.assertThatNullPointerException()
Alias forAssertions.assertThatExceptionOfType(Class)
forNullPointerException
.