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>

Assertion methods for a Table.
Author:
Régis Pouiller
  • Constructor Details

    • TableAssert

      public TableAssert(Table table)
      Constructor.
      Parameters:
      table - Table on which the assertion is.
  • Method Details

    • exists

      public TableAssert exists()
      Verifies that the table exist.

      Example where the assertion verifies that the table exists:

      
       assertThat(table).exists();
       
      Specified by:
      exists in interface AssertOnExistence<TableAssert>
      Returns:
      this assertion object.
    • doesNotExist

      public TableAssert doesNotExist()
      Verifies that the table doesn't exist.

      Example where the assertion verifies that the table doesn't exists:

      
       assertThat(table).doesNotExists();
       
      Specified by:
      doesNotExist in interface AssertOnExistence<TableAssert>
      Returns:
      this assertion object.