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| Constructor and Description |
|---|
ThrowableAssert(java.util.concurrent.Callable<V> runnable) |
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) |
doesNotThrowAnyException, hasBeenThrown, hasCause, hasCauseExactlyInstanceOf, hasCauseInstanceOf, hasMessage, hasMessage, hasMessageContaining, hasMessageEndingWith, hasMessageMatching, hasMessageStartingWith, hasNoCause, hasNoSuppressedExceptions, hasRootCauseExactlyInstanceOf, hasRootCauseInstanceOf, hasStackTraceContaining, hasSuppressedExceptionas, as, defaultTypeComparators, extracting, extracting, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, returns, usingComparatorForFields, usingComparatorForTypeasList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, overridingErrorMessage, satisfies, setCustomRepresentation, throwAssertionError, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnErrorpublic ThrowableAssert(java.lang.Throwable actual)
public 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)