|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.webtests.table.AbstractSimpleCell
com.atlassian.jira.webtests.table.LinkCell
public class LinkCell
This is used with the JIRAWebTest.tableRowEquals(com.meterware.httpunit.WebTable,int,java.util.List)
to identify which table cells should check for a link and not a text
Constructor Summary | |
---|---|
LinkCell(String url,
String label)
|
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. |
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()
|
Methods inherited from class com.atlassian.jira.webtests.table.AbstractSimpleCell |
---|
log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinkCell(String url, String label)
Method Detail |
---|
public String toString()
toString
in class Object
public String getCellAsText(com.meterware.httpunit.WebTable table, int row, int col)
SimpleCell
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.
getCellAsText
in interface SimpleCell
getCellAsText
in class AbstractSimpleCell
table
- tablerow
- row index (starting from 0)col
- col index (starting from 0)
public boolean equals(com.meterware.httpunit.WebTable table, int row, int col)
SimpleCell
table
- 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
- URL
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)
table
- table to comparerow
- row index of tablecol
- col index of tabletext
- text to verify
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |