Class ImageCell
java.lang.Object
com.atlassian.jira.webtests.table.AbstractSimpleCell
com.atlassian.jira.webtests.table.ImageCell
- All Implemented Interfaces:
SimpleCell
This is used with the
com.atlassian.jira.webtests.JIRAWebTest#tableRowEquals(com.meterware.httpunit.WebTable, int, java.util.List)
to check if an image with given url exists in a specified table cell.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(com.meterware.httpunit.WebTable table, int row, int col) Checks if there are any image (<img src="url">) tag in the specified row and col (cell) of thetable
which contains the url.getCellAsText
(com.meterware.httpunit.WebTable table, int row, int col) WebTable.getCellAsText(int, int)
returns the text of the cell only.getUrl()
toString()
Methods inherited from class com.atlassian.jira.webtests.table.AbstractSimpleCell
log
-
Constructor Details
-
ImageCell
-
-
Method Details
-
toString
-
getUrl
-
getCellAsText
Description copied from interface: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.- Specified by:
getCellAsText
in interfaceSimpleCell
- Overrides:
getCellAsText
in 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) Checks if there are any image (<img src="url">) tag in the specified row and col (cell) of thetable
which contains the url. If the url is null, then it checks that there are no image tags at all in the table cell.- Parameters:
table
- table to comparerow
- row index of tablecol
- column index of table- Returns:
- true if there is an image with given url in the table cell (row, col)
-