Package org.assertj.core.api
Class ThrowableAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<ThrowableAssert,Throwable>
org.assertj.core.api.AbstractObjectAssert<ThrowableAssert,Throwable>
org.assertj.core.api.AbstractThrowableAssert<ThrowableAssert,Throwable>
org.assertj.core.api.ThrowableAssert
- All Implemented Interfaces:
Assert<ThrowableAssert,
,Throwable> Descriptable<ThrowableAssert>
,ExtensionPoints<ThrowableAssert,
Throwable>
Assertion methods for
Throwable
s.
To create a new instance of this class, invoke
.
Assertions.assertThat(Throwable)
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.assertj.core.api.AbstractThrowableAssert
throwables
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, conditions, info, myself, objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <V> Throwable
buildThrowableAssertFromCallable
(Callable<V> callable) static Throwable
catchThrowable
(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Methods inherited from class org.assertj.core.api.AbstractThrowableAssert
doesNotThrowAnyException, hasBeenThrown, hasCause, hasCauseExactlyInstanceOf, hasCauseInstanceOf, hasMessage, hasMessage, hasMessageContaining, hasMessageEndingWith, hasMessageMatching, hasMessageStartingWith, hasNoCause, hasNoSuppressedExceptions, hasRootCauseExactlyInstanceOf, hasRootCauseInstanceOf, hasStackTraceContaining, hasSuppressedException
Methods inherited from class org.assertj.core.api.AbstractObjectAssert
as, as, defaultTypeComparators, extracting, extracting, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, returns, usingComparatorForFields, usingComparatorForType
Methods inherited from class org.assertj.core.api.AbstractAssert
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
-
Constructor Details
-
ThrowableAssert
-
ThrowableAssert
-
-
Method Details
-
buildThrowableAssertFromCallable
private static <V> Throwable buildThrowableAssertFromCallable(Callable<V> callable) throws AssertionError - Throws:
AssertionError
-
catchThrowable
-