Assert<SELF,ACTUAL>
, Descriptable<SELF>
, ExtensionPoints<SELF,ACTUAL>
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 | Description |
---|---|---|
static interface |
ThrowableAssert.ThrowingCallable |
actual, info, myself
Constructor | Description |
---|---|
ThrowableAssert(Throwable actual) |
|
ThrowableAssert(Callable<V> runnable) |
Modifier and Type | Method | Description |
---|---|---|
static Throwable |
catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
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
as, as, defaultTypeComparators, extracting, extracting, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, returns, usingComparatorForFields, usingComparatorForType
doesNotThrowAnyException, hasBeenThrown, hasCause, hasCauseExactlyInstanceOf, hasCauseInstanceOf, hasMessage, hasMessage, hasMessageContaining, hasMessageEndingWith, hasMessageMatching, hasMessageStartingWith, hasNoCause, hasNoSuppressedExceptions, hasRootCauseExactlyInstanceOf, hasRootCauseInstanceOf, hasStackTraceContaining, hasSuppressedException
public ThrowableAssert(Throwable actual)
public ThrowableAssert(Callable<V> runnable)
public static Throwable catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Copyright © 2014–2019. All rights reserved.