| Package | Description |
|---|---|
| org.assertj.core.api | |
| org.assertj.core.api.junit.jupiter |
| Modifier and Type | Interface and Description |
|---|---|
interface |
AutoCloseableSoftAssertionsProvider
Parent interface for soft assertion implementations.
|
interface |
BDDSoftAssertionsProvider |
interface |
Java6BDDSoftAssertionsProvider
AbstractBDDSoftAssertions compatible with Android.
|
interface |
Java6StandardSoftAssertionsProvider
AbstractStandardSoftAssertions compatible with Android.
|
interface |
SoftAssertionsRule |
interface |
StandardSoftAssertionsProvider |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractSoftAssertions |
class |
AutoCloseableBDDSoftAssertions
A version of
BDDSoftAssertions that uses try-with-resources statement to automatically call
AbstractSoftAssertions.assertAll() so that you don't forget to. |
class |
AutoCloseableSoftAssertions
A version of
SoftAssertions that uses try-with-resources statement to automatically call
AbstractSoftAssertions.assertAll() so that you don't forget to. |
class |
BDDSoftAssertions
Suppose we have a test case and in it we'd like to make numerous BDD assertions.
|
class |
Java6BDDSoftAssertions
Deprecated.
For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
BDD-style Android-compatible soft assertions. Duplicated from |
class |
Java6JUnitBDDSoftAssertions
Deprecated.
For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
Duplicate of |
class |
Java6JUnitSoftAssertions
Deprecated.
For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
JUnitSoftAssertions rule compatible with Android. Duplicated from |
class |
Java6SoftAssertions
Deprecated.
For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
Soft assertions compatible with Android. Duplicated from |
class |
JUnitBDDSoftAssertions
Same as
SoftAssertions, but with the following differences: First, it's a junit rule, which can be used without having to call assertAll(),
example: |
class |
JUnitJupiterBDDSoftAssertions
Deprecated.
use
SoftAssertionsExtension instead.
Same as SoftAssertions, but with the following differences: First, it's a JUnit Jupiter extension, which can be used without having to call assertAll(), example:
Second, the failures are recognized by IDE's (like IntelliJ IDEA) which open a comparison window. |
class |
JUnitJupiterSoftAssertions
Deprecated.
use
SoftAssertionsExtension instead.
Same as SoftAssertions, but with the following differences: First, it's a JUnit Jupiter extension, which can be used without having to call assertAll(), example:
Second, the failures are recognized by IDE's (like IntelliJ IDEA) which open a comparison window. |
class |
JUnitSoftAssertions
Same as
SoftAssertions, but with the following differences: First, it's a junit rule, which can be used without having to call assertAll(),
example: |
class |
SoftAssertions
Suppose we have a test case and in it we'd like to make numerous assertions.
|
| Modifier and Type | Method and Description |
|---|---|
static <S extends SoftAssertionsProvider> |
SoftAssertionsProvider.assertSoftly(Class<S> type,
Consumer<S> softly)
Use this to avoid having to call assertAll manually.
|
| Constructor and Description |
|---|
SoftThrowableAssertAlternative(ACTUAL actual,
SoftAssertionsProvider softAssertionsProvider) |
SoftThrowableTypeAssert(Class<? extends T> throwableType,
SoftAssertionsProvider softAssertionsProvider)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends SoftAssertionsProvider> |
SoftAssertionsExtension.getSoftAssertionsProvider(org.junit.jupiter.api.extension.ExtensionContext context,
Class<T> concreteSoftAssertionsProviderType)
Returns a
SoftAssertionsProvider instance of the given type for the given extension context. |
Copyright © 2025. All rights reserved.