public class ThrowableAssert extends AbstractThrowableAssert<ThrowableAssert,Throwable>
Throwables.
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, hasRootCauseExactlyInstanceOf, hasRootCauseInstanceOf, hasStackTraceContainingdefaultTypeComparators, extracting, extracting, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, usingComparatorForFields, usingComparatorForTypeas, 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, matches, matches, overridingErrorMessage, satisfies, setCustomRepresentation, throwAssertionError, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnErrorpublic ThrowableAssert(Throwable actual)
public ThrowableAssert(Callable<V> runnable)
public static Throwable catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Copyright © 2014–2016 AssertJ. All rights reserved.