Package org.assertj.db.api
Class SoftAssertions
java.lang.Object
org.assertj.db.api.SoftAssertions
Implementation of AssertJ SoftAssertions for
Table, Request and Changes.
This implementation works like AssertJ SoftAssertions implementation by providing you with proxies of the AssertJ-DB assertion objects.
For more details see AssertJ implementation : SoftAssertions
- Author:
- Julien Roy
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new SoftAssertions class that allow chain many assertion and detect all assertion failure ( not only the first one ). -
Method Summary
Modifier and TypeMethodDescriptionvoidAssert that all assertions succeed.assertThat(Changes changes) Creates a new instance ofChangesAssert.assertThat(Request request) Creates a new instance ofRequestAssert.assertThat(Table table) Creates a new instance ofTableAssert.
-
Constructor Details
-
SoftAssertions
public SoftAssertions()Create a new SoftAssertions class that allow chain many assertion and detect all assertion failure ( not only the first one ).
-
-
Method Details
-
assertThat
Creates a new instance ofTableAssert.- Parameters:
table- The table to assert on.- Returns:
- The created assertion object.
-
assertThat
Creates a new instance ofRequestAssert.- Parameters:
request- The request to assert on.- Returns:
- The created assertion object.
-
assertThat
Creates a new instance ofChangesAssert.- Parameters:
changes- The changes to assert on.- Returns:
- The created assertion object.
-
assertAll
public void assertAll()Assert that all assertions succeed.- Throws:
org.assertj.core.api.SoftAssertionError- If any assertion failed.
-