Package | Description |
---|---|
org.assertj.core.api |
Modifier and Type | Class and Description |
---|---|
class |
AbstractThrowableAssert<SELF extends AbstractThrowableAssert<SELF,ACTUAL>,ACTUAL extends java.lang.Throwable>
Base class for all implementations of assertions for
Throwable s. |
Modifier and Type | Class and Description |
---|---|
class |
ThrowableAssert
Assertion methods for
Throwable s. |
Modifier and Type | Field and Description |
---|---|
static InstanceOfAssertFactory<java.lang.Throwable,AbstractThrowableAssert<?,? extends java.lang.Throwable>> |
InstanceOfAssertFactories.THROWABLE
InstanceOfAssertFactory for a Throwable . |
Modifier and Type | Method and Description |
---|---|
default AbstractThrowableAssert<?,? extends java.lang.Throwable> |
WithAssertions.assertThat(java.lang.Throwable actual)
Creates a new instance of
. |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6Assertions.assertThat(java.lang.Throwable actual)
Deprecated.
Creates a new instance of
. |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
AssertionsForClassTypes.assertThat(java.lang.Throwable actual)
Creates a new instance of
. |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Assertions.assertThat(java.lang.Throwable actual)
Creates a new instance of
. |
default AbstractThrowableAssert<?,? extends java.lang.Throwable> |
WithAssertions.assertThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6Assertions.assertThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Deprecated.
Allows to capture and then assert on a
Throwable . |
AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6AbstractStandardSoftAssertions.assertThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
AssertionsForClassTypes.assertThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Assertions.assertThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Allows to capture and then assert on a
Throwable (easier done with lambdas). |
default AbstractThrowableAssert<?,? extends java.lang.Throwable> |
WithAssertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assert on a
Throwable (easier done with lambdas). |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Deprecated.
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6AbstractStandardSoftAssertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
AssertionsForClassTypes.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assert on a
Throwable (easier done with lambdas). |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assert on a
Throwable (easier done with lambdas). |
default AbstractThrowableAssert<?,? extends java.lang.Throwable> |
WithAssertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.Object... args)
Allows to capture and then assert on a
Throwable like assertThatThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) . |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.Object... args)
Deprecated.
Allows to capture and then assert on a
Throwable like assertThatThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) . |
AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6AbstractStandardSoftAssertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.Object... args)
Allows to capture and then assert on a
Throwable like assertThatThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) . |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
AssertionsForClassTypes.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.Object... args)
Allows to capture and then assert on a
Throwable like assertThatThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) . |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.Object... args)
Allows to capture and then assert on a
Throwable like assertThatThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) . |
default AbstractThrowableAssert<?,? extends java.lang.Throwable> |
WithAssumptions.assumeThat(java.lang.Throwable actual)
Creates a new instance of
assumption. |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Assumptions.assumeThat(java.lang.Throwable actual)
Creates a new instance of
assumption. |
default AbstractThrowableAssert<?,? extends java.lang.Throwable> |
WithAssumptions.assumeThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Allows to capture and then assume on a
Throwable (easier done with lambdas). |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Assumptions.assumeThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Allows to capture and then assume on a
Throwable (easier done with lambdas). |
default AbstractThrowableAssert<?,? extends java.lang.Throwable> |
WithAssumptions.assumeThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assume on a
Throwable (easier done with lambdas). |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Assumptions.assumeThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assume on a
Throwable (easier done with lambdas). |
AbstractThrowableAssert<?,? extends java.lang.Throwable> |
AbstractCompletableFutureAssert.hasFailedWithThrowableThat()
Verifies that the
CompletableFuture has completed exceptionally and
returns a Throwable assertion object allowing to check the Throwable that has caused the future to fail. |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6BDDAssertions.then(java.lang.Throwable actual)
Deprecated.
Creates a new instance of
. |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
BDDAssertions.then(java.lang.Throwable actual)
Creates a new instance of
. |
AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6BDDAssertions.thenCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Deprecated.
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6AbstractBDDSoftAssertions.thenCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
BDDAssertions.thenCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Deprecated.
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6AbstractBDDSoftAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assert on a
Throwable (easier done with lambdas). |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.Object... args)
Deprecated.
Allows to capture and then assert on a
Throwable like thenThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) . |
AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6AbstractBDDSoftAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.Object... args)
Allows to capture and then assert on a
Throwable like thenThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) . |
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.Object... args)
Allows to capture and then assert on a
Throwable like thenThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) . |