com.atlassian.jira.webtests.table
Class StrictTextCell

java.lang.Object
  extended by com.atlassian.jira.webtests.table.AbstractSimpleCell
      extended by 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

Constructor Summary
StrictTextCell(String expectedText)
           
 
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()
           
 
Methods inherited from class com.atlassian.jira.webtests.table.AbstractSimpleCell
getCellAsText, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StrictTextCell

public StrictTextCell(String expectedText)
Method Detail

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 - table
row - 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.