Class LinkCell
java.lang.Object
com.atlassian.jira.webtests.table.AbstractSimpleCell
com.atlassian.jira.webtests.table.LinkCell
- All Implemented Interfaces:
SimpleCell
This is used with the
com.atlassian.jira.webtests.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(com.meterware.httpunit.WebTable table, int row, int col) Checks if the cell table[row][col] is equal to this cellgetCellAsText(com.meterware.httpunit.WebTable table, int row, int col) WebTable.getCellAsText(int, int)returns the text of the cell only.protected booleantableCellHasLinkThatContains(com.meterware.httpunit.WebTable table, int row, int col, String link) Checks if a particular table cell contains the link URL specified.protected booleantableCellHasNoLinks(com.meterware.httpunit.WebTable table, int row, int col) protected booleantableCellHasStrictText(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 celltoString()Methods inherited from class com.atlassian.jira.webtests.table.AbstractSimpleCell
log
-
Constructor Details
-
LinkCell
-
-
Method Details
-
toString
-
getCellAsText
Description copied from interface: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.ImageCellwill return the cells information about the image rather than the text.- Specified by:
getCellAsTextin interfaceSimpleCell- Overrides:
getCellAsTextin classAbstractSimpleCell- Parameters:
table- tablerow- row index (starting from 0)col- col index (starting from 0)- Returns:
- String representing the WebTable cell that is interesting to this SimpleCell
-
equals
public boolean equals(com.meterware.httpunit.WebTable table, int row, int col) Description copied from interface:SimpleCellChecks 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
-
tableCellHasLinkThatContains
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.- Parameters:
table- table to comparerow- row index of tablecol- col index of tablelink- URL- Returns:
- True if the table cell contains the link URL specified.
-
tableCellHasNoLinks
protected boolean tableCellHasNoLinks(com.meterware.httpunit.WebTable table, int row, int col) -
tableCellHasStrictText
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- Parameters:
table- table to comparerow- row index of tablecol- col index of tabletext- text to verify- Returns:
- Returns true if the text is contained in the table cell specified.
-