public class ThrowableAssert extends AbstractThrowableAssert<ThrowableAssert,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 |
actual, info, myself
Constructor and Description |
---|
ThrowableAssert(Callable<V> runnable) |
ThrowableAssert(Throwable actual) |
Modifier and Type | Method and Description |
---|---|
static Throwable |
catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
hasBeenThrown, hasCause, hasCauseExactlyInstanceOf, hasCauseInstanceOf, hasMessage, hasMessage, hasMessageContaining, hasMessageEndingWith, hasMessageMatching, hasMessageStartingWith, hasNoCause, hasNoSuppressedExceptions, hasRootCauseExactlyInstanceOf, hasRootCauseInstanceOf, hasStackTraceContaining, hasSuppressedException
as, as, extracting, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, usingComparatorForFields, usingComparatorForType
asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, setCustomRepresentation, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnError
public ThrowableAssert(Throwable actual)
public ThrowableAssert(Callable<V> runnable)
public static Throwable catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Copyright © 2013–2018 AssertJ. All rights reserved.