Class StrictTextCell

java.lang.Object
com.atlassian.jira.webtests.table.AbstractSimpleCell
com.atlassian.jira.webtests.table.StrictTextCell
All Implemented Interfaces:
SimpleCell

public class StrictTextCell extends AbstractSimpleCell
An implementation of SimpleCell which will do a strict check for the expected text.

Compare this to TextCell which only checks that the String is contained anywhere in the actual text. This stricter test is sometimes required, eg to assert that one of the Cells is empty.

The comparison will ignore leading and trailing whitespace in the actual table.

Since:
v3.13
  • Constructor Details

    • StrictTextCell

      public StrictTextCell(String expectedText)
  • Method Details

    • equals

      public boolean equals(com.meterware.httpunit.WebTable table, int row, int col)
      Description copied from interface: SimpleCell
      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
    • toString

      public String toString()
      Overrides:
      toString in class Object