Class AssertionsOnTableExistence
java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnTableExistence
Implements the assertion method on the existence of a table.
- Author:
- Avinash Ananth Narayan
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends AbstractDbAssert<?,?, ?, ?, ?, ?>>
AdoesNotExists(A assertion, org.assertj.core.api.WritableAssertionInfo info, String table, ConnectionProvider connectionProvider) Verifies that the database not contains the table.static <A extends AbstractDbAssert<?,?, ?, ?, ?, ?>>
Aexists(A assertion, org.assertj.core.api.WritableAssertionInfo info, String table, ConnectionProvider connectionProvider) Verifies that the table exists.
-
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:
thisassertion 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:
thisassertion object.- Throws:
AssertionError- If the table does not exist.
-