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| Modifier | Constructor and Description |
|---|---|
protected |
ThrowableAssert(Callable<V> runnable) |
protected |
ThrowableAssert(Throwable actual) |
| Modifier and Type | Method and Description |
|---|---|
static Throwable |
catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
hasBeenThrown, hasCause, hasCauseExactlyInstanceOf, hasCauseInstanceOf, hasMessage, hasMessageContaining, hasMessageEndingWith, hasMessageStartingWith, hasNoCause, hasRootCauseExactlyInstanceOf, hasRootCauseInstanceOfas, 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, overridingErrorMessage, usingComparator, usingDefaultComparator, withThreadDumpOnErrorprotected ThrowableAssert(Throwable actual)
protected ThrowableAssert(Callable<V> runnable)
public static Throwable catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Copyright © 2013-2015 AssertJ. All Rights Reserved.