public class ThrowableAssert extends AbstractThrowableAssert<ThrowableAssert,java.lang.Throwable>
Throwables.
To create a new instance of this class, invoke .
Assertions.assertThat(Throwable)
| Modifier and Type | Class and Description |
|---|---|
static interface |
ThrowableAssert.ThrowingCallable |
throwablesactual, conditions, info, myself, objects| Modifier | Constructor and Description |
|---|---|
protected |
ThrowableAssert(java.util.concurrent.Callable<V> runnable) |
protected |
ThrowableAssert(java.lang.Throwable actual) |
| Modifier and Type | Method and Description |
|---|---|
private static <V> java.lang.Throwable |
buildThrowableAssertFromCallable(java.util.concurrent.Callable<V> callable) |
static java.lang.Throwable |
catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
hasBeenThrown, hasCause, hasCauseExactlyInstanceOf, hasCauseInstanceOf, hasMessage, hasMessageContaining, hasMessageEndingWith, hasMessageMatching, hasMessageStartingWith, hasNoCause, hasRootCauseExactlyInstanceOf, hasRootCauseInstanceOfas, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparator, withFailMessage, withThreadDumpOnErrorprotected ThrowableAssert(java.lang.Throwable actual)
protected ThrowableAssert(java.util.concurrent.Callable<V> runnable)
private static <V> java.lang.Throwable buildThrowableAssertFromCallable(java.util.concurrent.Callable<V> callable)
throws java.lang.AssertionError
java.lang.AssertionErrorpublic static java.lang.Throwable catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)