Class Table.Builder

java.lang.Object
org.assertj.db.type.Table.Builder
Enclosing class:
Table

public static class Table.Builder extends Object
Fluent Table builder. Use AssertDbConnection to construct new instance of this builder.
 
 AssertDbConnection connection = ....;
 Table table = connection.table("movie").build();
 Table table2 = connection.table("movie").columnToCheck(new String[] { "number", "title" }).build();
 
 
Since:
3.0.0
Author:
Julien Roy
  • Method Details

    • columnsToOrder

      public Table.Builder columnsToOrder(Table.Order[] columnsToOrder)
      Set order to use in SQL queries.
      Parameters:
      columnsToOrder - List of column to use as ORDER BY.
      Returns:
      Current builder instance.
    • delimiters

      public Table.Builder delimiters(Character startDelimiter, Character endDelimiter)
      Set delimiters to use in SQL queries.
      Parameters:
      startDelimiter - Start delimiter for column name and table name.
      endDelimiter - End delimiter for column name and table name.
      Returns:
      Current builder instance
    • columnsToCheck

      public Table.Builder columnsToCheck(String[] columnsToCheck)
      Set the columns to check.
      Parameters:
      columnsToCheck - Array of the name of the columns to check. If null that means to check all the columns.
      Returns:
      Current builder instance.
    • columnsToExclude

      public Table.Builder columnsToExclude(String[] columnsToExclude)
      Set the columns to exclude.
      Parameters:
      columnsToExclude - Array of the name of the columns to exclude. If null that means to exclude no column.
      Returns:
      Current builder instance.
    • build

      public Table build()
      Build the Table instance.
      Returns:
      Table instance to use in assertThat.