public class Table extends Object
| Constructor and Description |
|---|
Table(String name)
Creates a data set table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(org.dbunit.dataset.Column column) |
void |
addColumns(org.dbunit.dataset.Column[] columns2) |
void |
addRow(Row row)
Adds a data set row
|
TableDifference |
compare(Table actualTable)
Compares the table with the given actual table.
|
protected void |
compareRows(List<Row> rows,
Table actualTable,
TableDifference result)
Compares the given rows with the columns of the actual table.
|
List<org.dbunit.dataset.Column> |
getColumns() |
String |
getName() |
List<Row> |
getRows() |
boolean |
isEmpty() |
public Table(String name)
name - The name of the table, not nullpublic String getName()
public boolean isEmpty()
public void addRow(Row row)
row - The row to add, not nullpublic TableDifference compare(Table actualTable)
actualTable - The table to compare with, not nullprotected void compareRows(List<Row> rows, Table actualTable, TableDifference result)
rows - The rows to compare, not nullactualTable - The rows to compare with, not nullresult - The result to add the differences to, not nullpublic List<org.dbunit.dataset.Column> getColumns()
public void addColumns(org.dbunit.dataset.Column[] columns2)
public void addColumn(org.dbunit.dataset.Column column)
Copyright © 2017. All rights reserved.