public class TableAssertions extends AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
Constructor and Description |
---|
TableAssertions(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
void |
assertTableCellHasText(com.meterware.httpunit.WebTable webTable,
int row,
int column,
String text)
Asserts that the particular table cell contains the text specified.
|
void |
assertTableContainsRow(com.meterware.httpunit.WebTable webTable,
String[] expectedRow)
This method asserts that the given table contains AT LEAST ONE copy of the given row.
|
void |
assertTableContainsRowCount(com.meterware.httpunit.WebTable webTable,
String[] expectedRow,
int expectedCount)
Asserts that the given table contains the expected number of copies of the given row.
|
void |
assertTableContainsRowOnce(com.meterware.httpunit.WebTable webTable,
Object[] expectedRow)
This method asserts that the given table contains EXACTLY ONE copy of the given row.
|
void |
assertTableContainsRowOnce(com.meterware.httpunit.WebTable webTable,
Object[] expectedRow,
boolean exactCellSearching)
This method asserts that the given table contains EXACTLY ONE copy of the given row.
|
void |
assertTableRowEquals(com.meterware.httpunit.WebTable table,
int row,
Object[] expectedRow)
Assert that the specified row of the table is equal to the expectedRow.
|
void |
assertTableRowEqualsCollapsed(com.meterware.httpunit.WebTable table,
int row,
Object[] expectedRow)
Assert that the specified row of the table is equal to the expectedRow with whitespace collapsed.
|
com.meterware.httpunit.WebTable |
getWebTable(String tableSummaryOrId)
Gets a WebTable by summury or ID.
|
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
public TableAssertions(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
public com.meterware.httpunit.WebTable getWebTable(String tableSummaryOrId)
tableSummaryOrId
- Table ID (or summary - whatever that is)HttpUnitDialog.getWebTableBySummaryOrId(String)
public void assertTableContainsRowOnce(com.meterware.httpunit.WebTable webTable, Object[] expectedRow)
webTable
- The webTable under testsexpectedRow
- the row we expect to find exactly one copy of.public void assertTableContainsRowOnce(com.meterware.httpunit.WebTable webTable, Object[] expectedRow, boolean exactCellSearching)
webTable
- The webTable under testsexpectedRow
- the row we expect to find exactly one copy of.exactCellSearching
- set to true if cell contents should match exactly (equals); false for fuzzily (contains)public void assertTableContainsRow(com.meterware.httpunit.WebTable webTable, String[] expectedRow)
assertTableContainsRowOnce(com.meterware.httpunit.WebTable, Object[])
.webTable
- The webTable under testsexpectedRow
- the row we expect to find.assertTableContainsRowOnce(com.meterware.httpunit.WebTable, java.lang.Object[])
,
assertTableContainsRowCount(com.meterware.httpunit.WebTable, java.lang.String[], int)
public void assertTableContainsRowCount(com.meterware.httpunit.WebTable webTable, String[] expectedRow, int expectedCount)
webTable
- The webTable under testsexpectedRow
- the row we expect to find exactly one copy of.expectedCount
- The number of copies of this row we expect to find.public void assertTableRowEquals(com.meterware.httpunit.WebTable table, int row, Object[] expectedRow)
TableAssertions.StrictWhitespaceContainsChecker
table
- table to look up the rowrow
- the row number of the table to compareexpectedRow
- the expected row to matchpublic void assertTableRowEqualsCollapsed(com.meterware.httpunit.WebTable table, int row, Object[] expectedRow)
EqualsChecker
.table
- table to look up the rowrow
- the row number of the table to compareexpectedRow
- the expected row to match with whitespace collapsed.public void assertTableCellHasText(com.meterware.httpunit.WebTable webTable, int row, int column, String text)
webTable
- the web tablerow
- the row index (zero-based)column
- the column index (zero-based)text
- the text to findCopyright © 2002-2016 Atlassian. All Rights Reserved.