Class SoftAssertions

java.lang.Object
org.assertj.db.api.SoftAssertions

public final class SoftAssertions extends Object
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 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

      public TableAssert assertThat(Table table)
      Creates a new instance of TableAssert.
      Parameters:
      table - The table to assert on.
      Returns:
      The created assertion object.
    • assertThat

      public RequestAssert assertThat(Request request)
      Creates a new instance of RequestAssert.
      Parameters:
      request - The request to assert on.
      Returns:
      The created assertion object.
    • assertThat

      public ChangesAssert assertThat(Changes changes)
      Creates a new instance of ChangesAssert.
      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.