|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jwebunit.html.Table
public class Table
Represents an expected table for comparison with an actual html table.
Constructor Summary | |
---|---|
Table()
Construct a table without providing any contents; they can be appended subsequently. |
|
Table(java.lang.Object[][] values)
Construct a table from a two dimensional array of objects. |
Method Summary | |
---|---|
void |
appendRow(Row row)
Append a single expected row. |
void |
appendRows(java.lang.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()
|
java.util.ArrayList |
getRows()
|
boolean |
hasMatch(java.lang.String regexp)
|
boolean |
hasText(java.lang.String text)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Table()
public Table(java.lang.Object[][] values)
Cell
, in which case its defined value and
colspan are used.
values
- two-dimensional array representing table cells.Method Detail |
---|
public void appendRows(java.lang.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 java.util.ArrayList getRows()
public boolean hasText(java.lang.String text)
public boolean hasMatch(java.lang.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |