Package org.assertj.db.api
Class TableAssert
- All Implemented Interfaces:
org.assertj.core.api.Descriptable<TableAssert>,AssertOnExistence<TableAssert>,AssertOnNumberOfColumns<TableAssert>,AssertOnNumberOfRows<TableAssert>,Navigation,Origin,OriginWithColumnsAndRows<TableColumnAssert,,TableRowAssert> ToColumn<TableColumnAssert>,ToRow<TableRowAssert>
public class TableAssert
extends AbstractDbAssert<Table,TableAssert,TableColumnAssert,TableColumnValueAssert,TableRowAssert,TableRowValueAssert>
implements AssertOnExistence<TableAssert>
Assertion methods for a
Table.- Author:
- Régis Pouiller
-
Field Summary
Fields inherited from class org.assertj.db.api.AbstractDbAssert
actualFields inherited from class org.assertj.db.global.AbstractElement
info, myself -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionVerifies that the table doesn't exist.exists()Verifies that the table exist.Methods inherited from class org.assertj.db.api.AbstractDbAssert
column, column, column, hasNumberOfColumns, hasNumberOfColumnsGreaterThan, hasNumberOfColumnsGreaterThanOrEqualTo, hasNumberOfColumnsLessThan, hasNumberOfColumnsLessThanOrEqualTo, hasNumberOfRows, hasNumberOfRowsGreaterThan, hasNumberOfRowsGreaterThanOrEqualTo, hasNumberOfRowsLessThan, hasNumberOfRowsLessThanOrEqualTo, isEmpty, row, rowMethods inherited from class org.assertj.db.global.AbstractElement
as, as, describedAs, describedAs, getInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as
-
Constructor Details
-
TableAssert
Constructor.- Parameters:
table- Table on which the assertion is.
-
-
Method Details
-
exists
Verifies that the table exist.Example where the assertion verifies that the table exists:
assertThat(table).exists();- Specified by:
existsin interfaceAssertOnExistence<TableAssert>- Returns:
thisassertion object.
-
doesNotExist
Verifies that the table doesn't exist.Example where the assertion verifies that the table doesn't exists:
assertThat(table).doesNotExists();- Specified by:
doesNotExistin interfaceAssertOnExistence<TableAssert>- Returns:
thisassertion object.
-