| 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 |
SoftAssertionsProvider
Parent interface for soft assertion implementations.
|
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 |
DefaultAssertionErrorCollector |
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 |
|---|---|
Optional<AssertionErrorCollector> |
DefaultAssertionErrorCollector.getDelegate() |
default Optional<AssertionErrorCollector> |
AssertionErrorCollector.getDelegate() |
| Modifier and Type | Method and Description |
|---|---|
static void |
AbstractSoftAssertions.assertAll(AssertionErrorCollector collector) |
default void |
SoftAssertionsProvider.assertAlso(AssertionErrorCollector collector)
Add all errors of
collector argument to current instance. |
void |
DefaultAssertionErrorCollector.setDelegate(AssertionErrorCollector delegate) |
default void |
AssertionErrorCollector.setDelegate(AssertionErrorCollector delegate)
Optionally sets a "delegate" collector into which the collected assertions will be deposited.
|
| Modifier and Type | Method and Description |
|---|---|
static AssertionErrorCollector |
SoftAssertionsExtension.getAssertionErrorCollector(org.junit.jupiter.api.extension.ExtensionContext context)
Returns the
AssertionErrorCollector for the given extension context, if none exists for the current context then
one is created. |
Copyright © 2025. All rights reserved.