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()
WithAssertions.assertThatIllegalArgumentException()
Assertions.assertThatIllegalStateException()
Alias forAssertions.assertThatExceptionOfType(Class)
forIllegalStateException
.default ThrowableTypeAssert<IllegalStateException>
WithAssertions.assertThatIllegalStateException()
static ThrowableTypeAssert<IOException>
Assertions.assertThatIOException()
Alias forAssertions.assertThatExceptionOfType(Class)
forIOException
.default ThrowableTypeAssert<IOException>
WithAssertions.assertThatIOException()
Alias forWithAssertions.assertThatExceptionOfType(Class)
forIOException
.Assertions.assertThatNullPointerException()
Alias forAssertions.assertThatExceptionOfType(Class)
forNullPointerException
.default ThrowableTypeAssert<NullPointerException>
WithAssertions.assertThatNullPointerException()
ThrowableTypeAssert.describedAs
(Description description) Sets the description of the assertion that is going to be called after.static <T extends Throwable>
ThrowableTypeAssert<T>BDDAssertions.thenExceptionOfType
(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.BDDAssertions.thenIllegalArgumentException()
Alias forBDDAssertions.thenExceptionOfType(Class)
forIllegalArgumentException
.BDDAssertions.thenIllegalStateException()
Alias forBDDAssertions.thenExceptionOfType(Class)
forIllegalStateException
.static ThrowableTypeAssert<IOException>
BDDAssertions.thenIOException()
Alias forBDDAssertions.thenExceptionOfType(Class)
forIOException
.BDDAssertions.thenNullPointerException()
Alias forBDDAssertions.thenExceptionOfType(Class)
forNullPointerException
.