AbstractSoftAssertions, SoftAssertions
| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public default void | assertAlso(AssertionErrorCollector
the collector) error sourceAdd all errors of |
| public static < the concrete type of soft assertions to use. S extends SoftAssertionsProvider> void | assertSoftly(Class<S>
the class object of the concrete type of soft assertions to use. type, Consumer<S> the Consumer containing the code that will make the soft assertions.
Takes one parameter (the SoftAssertion instance used to make the assertions). softly)Use this to avoid having to call assertAll manually. |
| public default void | check(SoftAssertionsProvider.
an assertion call. assertionCatch and collect assertion errors coming from standard and custom assertions. |
| public < The type of the assertion class SELF extends AssertThe type of the object-under-test ACTUAL> SELF | Returns: A proxied assertion class for the given object-under-test.Class instance for the assertion type. assertClass, Class<ACTUAL> Class instance for the type of the object-under-test. actualClass, ACTUAL The actual object-under-test. actual)Creates a proxied assertion class of the given type. |
| assertAll | back to summary |
|---|---|
| public void assertAll() Verifies that no soft assertions have failed.
| |
| assertAlso | back to summary |
|---|---|
| public default void assertAlso(AssertionErrorCollector collector) Add all errors of
| |
| assertSoftly | back to summary |
|---|---|
| public static <S extends SoftAssertionsProvider> void assertSoftly(Class<S> type, Consumer<S> softly) Use this to avoid having to call assertAll manually.
| |
| check | back to summary |
|---|---|
| public default void check(SoftAssertionsProvider. Catch and collect assertion errors coming from standard and custom assertions. Example :
| |
| proxy | back to summary |
|---|---|
| public <SELF extends Assert Creates a proxied assertion class of the given type. The returned value is an assertion object compatible with the supplied assertion class, but instead of throwing errors it will collect them and store.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| run | back to summary |
|---|---|
| public void run() throws Exception | |