Class AssertionsOnTableExistence

java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnTableExistence

public class AssertionsOnTableExistence extends Object
Implements the assertion method on the existence of a table.
Author:
Avinash Ananth Narayan
  • Method Details

    • exists

      public static <A extends AbstractDbAssert<?, ?, ?, ?, ?, ?>> A exists(A assertion, org.assertj.core.api.WritableAssertionInfo info, String table, ConnectionProvider connectionProvider)
      Verifies that the table exists.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      table - The table name to search in DB.
      connectionProvider - The provider to connect to DB.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the table does not exist.
    • doesNotExists

      public static <A extends AbstractDbAssert<?, ?, ?, ?, ?, ?>> A doesNotExists(A assertion, org.assertj.core.api.WritableAssertionInfo info, String table, ConnectionProvider connectionProvider)
      Verifies that the database not contains the table.
      Type Parameters:
      A - The type of the assertion which call this method.
      Parameters:
      assertion - The assertion which call this method.
      info - Writable information about an assertion.
      table - The table name to search in DB.
      connectionProvider - The provider to connect to DB.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the table does not exist.