| Package | Description |
|---|---|
| org.assertj.core.api |
| Modifier and Type | Method and Description |
|---|---|
default AbstractThrowableAssert<?,? extends Throwable> |
WithAssertions.assertThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
default AbstractThrowableAssert<?,? extends Throwable> |
Java6StandardSoftAssertionsProvider.assertThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
static AbstractThrowableAssert<?,? extends Throwable> |
Java6Assertions.assertThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Deprecated.
Allows to capture and then assert on a
Throwable. |
static AbstractThrowableAssert<?,? extends 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 Throwable> |
Assertions.assertThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Allows to capture and then assert on a
Throwable (easier done with lambdas). |
default AbstractThrowableAssert<?,? extends Throwable> |
WithAssertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assert on a
Throwable (easier done with lambdas). |
default AbstractThrowableAssert<?,? extends Throwable> |
Java6StandardSoftAssertionsProvider.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
static AbstractThrowableAssert<?,? extends Throwable> |
Java6Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Deprecated.
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
static AbstractThrowableAssert<?,? extends Throwable> |
AssertionsForClassTypes.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assert on a
Throwable (easier done with lambdas). |
static AbstractThrowableAssert<?,? extends Throwable> |
Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assert on a
Throwable (easier done with lambdas). |
default AbstractThrowableAssert<?,? extends Throwable> |
WithAssertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
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 Throwable> |
Java6StandardSoftAssertionsProvider.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
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 Throwable> |
Java6Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
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...). |
static AbstractThrowableAssert<?,? extends Throwable> |
AssertionsForClassTypes.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
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 Throwable> |
Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
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 Throwable> |
WithAssumptions.assumeThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Allows to capture and then assume on a
Throwable (easier done with lambdas). |
static AbstractThrowableAssert<?,? extends Throwable> |
Assumptions.assumeThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Allows to capture and then assume on a
Throwable (easier done with lambdas). |
default AbstractThrowableAssert<?,? extends Throwable> |
WithAssumptions.assumeThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assume on a
Throwable (easier done with lambdas). |
static AbstractThrowableAssert<?,? extends Throwable> |
Assumptions.assumeThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assume on a
Throwable (easier done with lambdas). |
default Exception |
WithAssertions.catchException(ThrowableAssert.ThrowingCallable shouldRaiseException)
Allows catching an instance of
Exception. |
static Exception |
BDDAssertions.catchException(ThrowableAssert.ThrowingCallable shouldRaiseException)
Allows catching an instance of
Exception. |
static Exception |
Assertions.catchException(ThrowableAssert.ThrowingCallable shouldRaiseException)
Allows catching an instance of
Exception. |
default IllegalArgumentException |
WithAssertions.catchIllegalArgumentException(ThrowableAssert.ThrowingCallable shouldRaiseIllegalArgumentException)
Allows catching an instance of
IllegalArgumentException. |
static IllegalArgumentException |
BDDAssertions.catchIllegalArgumentException(ThrowableAssert.ThrowingCallable shouldRaiseIllegalArgumentException)
Allows catching an instance of
IllegalArgumentException. |
static IllegalArgumentException |
Assertions.catchIllegalArgumentException(ThrowableAssert.ThrowingCallable shouldRaiseIllegalArgumentException)
Allows catching an instance of
IllegalArgumentException. |
default IllegalStateException |
WithAssertions.catchIllegalStateException(ThrowableAssert.ThrowingCallable shouldRaiseIllegalStateException)
Allows catching an instance of
IllegalStateException. |
static IllegalStateException |
BDDAssertions.catchIllegalStateException(ThrowableAssert.ThrowingCallable shouldRaiseIllegalStateException)
Allows catching an instance of
IllegalStateException. |
static IllegalStateException |
Assertions.catchIllegalStateException(ThrowableAssert.ThrowingCallable shouldRaiseIllegalStateException)
Allows catching an instance of
IllegalStateException. |
default IndexOutOfBoundsException |
WithAssertions.catchIndexOutOfBoundsException(ThrowableAssert.ThrowingCallable shouldRaiseIndexOutOfBoundException)
Allows catching an instance of
IndexOutOfBoundsException. |
static IndexOutOfBoundsException |
BDDAssertions.catchIndexOutOfBoundsException(ThrowableAssert.ThrowingCallable shouldRaiseIndexOutOfBoundException)
Allows catching an instance of
IndexOutOfBoundsException. |
static IndexOutOfBoundsException |
Assertions.catchIndexOutOfBoundsException(ThrowableAssert.ThrowingCallable shouldRaiseIndexOutOfBoundException)
Allows catching an instance of
IndexOutOfBoundsException. |
default IOException |
WithAssertions.catchIOException(ThrowableAssert.ThrowingCallable shouldRaiseIOException)
Allows catching an instance of
IOException. |
static IOException |
BDDAssertions.catchIOException(ThrowableAssert.ThrowingCallable shouldRaiseIOException)
Allows catching an instance of
IOException. |
static IOException |
Assertions.catchIOException(ThrowableAssert.ThrowingCallable shouldRaiseIOException)
Allows catching an instance of
IOException. |
default NullPointerException |
WithAssertions.catchNullPointerException(ThrowableAssert.ThrowingCallable shouldRaiseNullPointerException)
Allows catching an instance of
NullPointerException. |
static NullPointerException |
BDDAssertions.catchNullPointerException(ThrowableAssert.ThrowingCallable shouldRaiseNullPointerException)
Allows catching an instance of
NullPointerException. |
static NullPointerException |
Assertions.catchNullPointerException(ThrowableAssert.ThrowingCallable shouldRaiseNullPointerException)
Allows catching an instance of
NullPointerException. |
default ReflectiveOperationException |
WithAssertions.catchReflectiveOperationException(ThrowableAssert.ThrowingCallable shouldRaiseReflectiveOperationException)
Allows catching an instance of
ReflectiveOperationException. |
static ReflectiveOperationException |
BDDAssertions.catchReflectiveOperationException(ThrowableAssert.ThrowingCallable shouldRaiseReflectiveOperationException)
Allows catching an instance of
ReflectiveOperationException. |
static ReflectiveOperationException |
Assertions.catchReflectiveOperationException(ThrowableAssert.ThrowingCallable shouldRaiseReflectiveOperationException)
Allows catching an instance of
ReflectiveOperationException. |
default RuntimeException |
WithAssertions.catchRuntimeException(ThrowableAssert.ThrowingCallable shouldRaiseRuntimeException)
Allows catching an instance of
RuntimeException. |
static RuntimeException |
BDDAssertions.catchRuntimeException(ThrowableAssert.ThrowingCallable shouldRaiseRuntimeException)
Allows catching an instance of
RuntimeException. |
static RuntimeException |
Assertions.catchRuntimeException(ThrowableAssert.ThrowingCallable shouldRaiseRuntimeException)
Allows catching an instance of
RuntimeException. |
default Throwable |
WithAssertions.catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to catch an
Throwable more easily when used with Java 8 lambdas. |
static Throwable |
ThrowableAssert.catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
static Throwable |
Java6Assertions.catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Deprecated.
Allows to catch an
Throwable more easily when used with Java 8 lambdas. |
static Throwable |
BDDAssertions.catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows catching a
Throwable more easily when used with Java 8 lambdas. |
static Throwable |
AssertionsForClassTypes.catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows catching a
Throwable more easily when used with Java 8 lambdas. |
static Throwable |
Assertions.catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows catching a
Throwable more easily when used with Java 8 lambdas. |
default <THROWABLE extends Throwable> |
WithAssertions.catchThrowableOfType(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
Class<THROWABLE> type)
Allows catching a
Throwable of a specific type. |
static <THROWABLE extends Throwable> |
ThrowableAssert.catchThrowableOfType(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
Class<THROWABLE> type) |
static <THROWABLE extends Throwable> |
Java6Assertions.catchThrowableOfType(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
Class<THROWABLE> type)
Deprecated.
Allows catching a
Throwable of a specific type. |
static <THROWABLE extends Throwable> |
BDDAssertions.catchThrowableOfType(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
Class<THROWABLE> type)
Allows catching a
Throwable of a specific type. |
static <THROWABLE extends Throwable> |
AssertionsForClassTypes.catchThrowableOfType(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
Class<THROWABLE> type)
Allows catching a
Throwable of a specific type. |
static <THROWABLE extends Throwable> |
Assertions.catchThrowableOfType(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
Class<THROWABLE> type)
Allows catching a
Throwable of a specific type. |
static AbstractThrowableAssert<?,? extends Throwable> |
BDDAssumptions.givenCode(ThrowableAssert.ThrowingCallable lambda)
Creates a new assumption's instance from a no parameters lambda expression,
() -> { /* some code */ }. |
ThrowableAssertAlternative<T> |
ThrowableTypeAssert.isThrownBy(ThrowableAssert.ThrowingCallable throwingCallable)
Assert that an exception of type T is thrown by the
throwingCallable
and allow to chain assertions on the thrown exception. |
void |
NotThrownAssert.isThrownBy(ThrowableAssert.ThrowingCallable code)
Assert that no exception of any type is thrown by the
throwingCallable. |
default AbstractThrowableAssert<?,? extends Throwable> |
Java6BDDSoftAssertionsProvider.thenCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
AbstractThrowableAssert<?,? extends Throwable> |
Java6BDDAssertions.thenCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Deprecated.
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
static AbstractThrowableAssert<?,? extends Throwable> |
BDDAssertions.thenCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable)
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
default AbstractThrowableAssert<?,? extends Throwable> |
Java6BDDSoftAssertionsProvider.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
static AbstractThrowableAssert<?,? extends Throwable> |
Java6BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Deprecated.
Allows to capture and then assert on a
Throwable more easily when used with Java 8 lambdas. |
static AbstractThrowableAssert<?,? extends Throwable> |
BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assert on a
Throwable (easier done with lambdas). |
default AbstractThrowableAssert<?,? extends Throwable> |
Java6BDDSoftAssertionsProvider.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
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 Throwable> |
Java6BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
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...). |
static AbstractThrowableAssert<?,? extends Throwable> |
BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
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...). |
Copyright © 2025. All rights reserved.