com.atlassian.jira.webtests.table
Class StrictTextCell
java.lang.Object
com.atlassian.jira.webtests.table.AbstractSimpleCell
com.atlassian.jira.webtests.table.StrictTextCell
- All Implemented Interfaces:
- SimpleCell
public class StrictTextCell
- extends AbstractSimpleCell
An implementation of SimpleCell which will do a strict check for the expected text.
Compare this to TextCell which only checks that the String is contained anywhere in the actual text.
This stricter test is sometimes required, eg to assert that one of the Cells is empty.
The comparison will ignore leading and trailing whitespace in the actual table.
- Since:
- v3.13
Method Summary |
boolean |
equals(com.meterware.httpunit.WebTable table,
int row,
int col)
Checks if the cell table[row][col] is equal to this cell |
String |
toString()
|
StrictTextCell
public StrictTextCell(String expectedText)
equals
public boolean equals(com.meterware.httpunit.WebTable table,
int row,
int col)
- Description copied from interface:
SimpleCell
- Checks if the cell table[row][col] is equal to this cell
- Parameters:
table
- tablerow
- row index (starting from 0)col
- col index (starting from 0)
- Returns:
- true if the referenced cell is equal to this cell, false otherwise
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2002-2013 Atlassian. All Rights Reserved.