public class Cell extends Object
Constructor and Description |
---|
Cell(String value)
Construct a cell with a default colspan/rowspan of 1.
|
Cell(String value,
int colspan,
int rowspan)
Construct a cell with a specified colspan.
|
Modifier and Type | Method and Description |
---|---|
void |
assertEquals(Cell c)
Assert that the current cell equals given one.
|
void |
assertMatch(Cell c)
Assert that the current cell matches given one.
|
boolean |
equals(String text)
Check if the current cell contains given text.
|
int |
getColspan() |
int |
getRowspan() |
String |
getValue() |
boolean |
match(String regexp)
Check if the current cell matches given text.
|
public Cell(String value)
value
- text expected within the cell.public Cell(String value, int colspan, int rowspan)
value
- text expected within the cell.colspan
- number of columns the cell is expected to span.rowspan
- number of rows the cell is expected to span.public int getColspan()
public int getRowspan()
public final String getValue()
public void assertEquals(Cell c)
c
- given cellpublic void assertMatch(Cell c)
c
- given cellpublic boolean equals(String text)
text
- given text.public boolean match(String regexp)
regexp
- given regexp.Copyright © 2002-2015 JWebUnit. All Rights Reserved.