com.atlassian.jira.webtests.table
Interface SimpleCell

All Known Implementing Classes:
AbstractSimpleCell, AndCell, EmptyCell, ImageCell, LinkCell, NotCell, OrCell, StrictTextCell, TextCell

public interface SimpleCell

This is interface should be implemented for simple conditional checks to be used in JIRAWebTest.tableRowEquals(com.meterware.httpunit.WebTable, int, java.util.List).


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 getCellAsText(com.meterware.httpunit.WebTable table, int row, int col)
          WebTable.getCellAsText(int, int) returns the text of the cell only.
 

Method Detail

getCellAsText

String getCellAsText(com.meterware.httpunit.WebTable table,
                     int row,
                     int col)
WebTable.getCellAsText(int, int) returns the text of the cell only. Using this in log statements is often useless because it does not give interesting information. Eg. ImageCell will return the cells information about the image rather than the text.

Parameters:
table - table
row - row index (starting from 0)
col - col index (starting from 0)
Returns:
String representing the WebTable cell that is interesting to this SimpleCell

equals

boolean equals(com.meterware.httpunit.WebTable table,
               int row,
               int col)
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


Copyright © 2002-2013 Atlassian. All Rights Reserved.