public class ThrowableAssert extends AbstractThrowableAssert<ThrowableAssert,java.lang.Throwable>
Throwable
s.
To create a new instance of this class, invoke
.
Assertions.assertThat(Throwable)
Modifier and Type | Class and Description |
---|---|
static interface |
ThrowableAssert.ThrowingCallable |
throwables
actual, 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, hasSuppressedException
as, as, defaultTypeComparators, extracting, extracting, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, returns, usingComparatorForFields, usingComparatorForType
asList, 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, withThreadDumpOnError
public 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.AssertionError
public static java.lang.Throwable catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)