public class Table extends Object
Constructor and Description |
---|
Table()
Construct a table without providing any contents; they can be appended subsequently.
|
Table(Object[][] values)
Construct a table from a two dimensional array of objects.
|
Modifier and Type | Method and Description |
---|---|
void |
appendRow(Row row)
Append a single expected row.
|
void |
appendRows(Object[][] newExpectedValues)
Append any number of rows, represented by a two dimensional array of objects.
|
void |
appendRows(Table table)
Append another table's rows.
|
void |
assertEquals(Table t) |
void |
assertMatch(Table t) |
void |
assertSubTableEquals(int startRow,
Table t) |
void |
assertSubTableMatch(int startRow,
Table t) |
int |
getRowCount() |
List<Row> |
getRows() |
boolean |
hasMatch(String regexp) |
boolean |
hasText(String text) |
public Table()
public Table(Object[][] values)
Cell
, in which case its defined value and
colspan are used.values
- two-dimensional array representing table cells.public void appendRows(Object[][] newExpectedValues)
Cell
, in which case its
defined value and colspan are used.newExpectedValues
- two-dimensional array representing expected table cells.public void appendRows(Table table)
table
- table whose rows are to be appended.public void appendRow(Row row)
row
- row to be appended.public int getRowCount()
public boolean hasText(String text)
public boolean hasMatch(String regexp)
public void assertEquals(Table t)
public void assertSubTableEquals(int startRow, Table t)
public void assertMatch(Table t)
public void assertSubTableMatch(int startRow, Table t)
Copyright © 2002-2015 JWebUnit. All Rights Reserved.