public class LinkCell extends AbstractSimpleCell
JIRAWebTest.tableRowEquals(com.meterware.httpunit.WebTable, int, java.util.List)
to identify which table cells should check for a link and not a text| Modifier and Type | Method and Description |
|---|---|
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. |
protected boolean |
tableCellHasLinkThatContains(com.meterware.httpunit.WebTable table,
int row,
int col,
String link)
Checks if a particular table cell contains the link URL specified.
|
protected boolean |
tableCellHasNoLinks(com.meterware.httpunit.WebTable table,
int row,
int col) |
protected boolean |
tableCellHasStrictText(com.meterware.httpunit.WebTable table,
int row,
int col,
String text)
todo - this should really be getting the anchor tag and asserting that the link has the text not the whole cell
|
String |
toString() |
logpublic String getCellAsText(com.meterware.httpunit.WebTable table, int row, int col)
SimpleCellWebTable.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.getCellAsText in interface SimpleCellgetCellAsText in class AbstractSimpleCelltable - tablerow - row index (starting from 0)col - col index (starting from 0)public boolean equals(com.meterware.httpunit.WebTable table,
int row,
int col)
SimpleCelltable - tablerow - row index (starting from 0)col - col index (starting from 0)protected boolean tableCellHasLinkThatContains(com.meterware.httpunit.WebTable table,
int row,
int col,
String link)
table - table to comparerow - row index of tablecol - col index of tablelink - URLprotected boolean tableCellHasNoLinks(com.meterware.httpunit.WebTable table,
int row,
int col)
protected boolean tableCellHasStrictText(com.meterware.httpunit.WebTable table,
int row,
int col,
String text)
table - table to comparerow - row index of tablecol - col index of tabletext - text to verifyCopyright © 2002-2022 Atlassian. All Rights Reserved.