Package | Description |
---|---|
org.assertj.core.api |
Modifier and Type | Method and Description |
---|---|
ThrowableTypeAssert<T> |
ThrowableTypeAssert.as(Description description)
Sets the description of the assertion that is going to be called after.
|
ThrowableTypeAssert<T> |
ThrowableTypeAssert.as(String description,
Object... args)
Sets the description of the assertion that is going to be called after.
|
default <T extends Throwable> |
WithAssertions.assertThatExceptionOfType(Class<? extends T> exceptionType)
Entry point to check that an exception of type T is thrown by a given
throwingCallable
which allows to chain assertions on the thrown exception. |
static <T extends Throwable> |
Assertions.assertThatExceptionOfType(Class<? extends T> exceptionType)
Entry point to check that an exception of type T is thrown by a given
throwingCallable
which allows to chain assertions on the thrown exception. |
static <T extends Throwable> |
AssertionsForClassTypes.assertThatExceptionOfType(Class<? extends T> exceptionType)
Entry point to check that an exception of type T is thrown by a given
throwingCallable
which allows to chain assertions on the thrown exception. |
default ThrowableTypeAssert<IllegalArgumentException> |
WithAssertions.assertThatIllegalArgumentException()
|
static ThrowableTypeAssert<IllegalArgumentException> |
Assertions.assertThatIllegalArgumentException()
|
default ThrowableTypeAssert<IllegalStateException> |
WithAssertions.assertThatIllegalStateException()
|
static ThrowableTypeAssert<IllegalStateException> |
Assertions.assertThatIllegalStateException()
Alias for
Assertions.assertThatExceptionOfType(Class) for IllegalStateException . |
default ThrowableTypeAssert<IOException> |
WithAssertions.assertThatIOException()
Alias for
WithAssertions.assertThatExceptionOfType(Class) for IOException . |
static ThrowableTypeAssert<IOException> |
Assertions.assertThatIOException()
Alias for
Assertions.assertThatExceptionOfType(Class) for IOException . |
default ThrowableTypeAssert<NullPointerException> |
WithAssertions.assertThatNullPointerException()
|
static ThrowableTypeAssert<NullPointerException> |
Assertions.assertThatNullPointerException()
Alias for
Assertions.assertThatExceptionOfType(Class) for NullPointerException . |
ThrowableTypeAssert<T> |
ThrowableTypeAssert.describedAs(Description description)
Sets the description of the assertion that is going to be called after.
|
ThrowableTypeAssert<T> |
ThrowableTypeAssert.describedAs(String description,
Object... args)
Sets the description of the assertion that is going to be called after.
|
Copyright © 2014–2019 AssertJ. All rights reserved.