public class TableAssertions extends Object
| Constructor and Description |
|---|
TableAssertions(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertTableCellDoesNotHaveText(com.meterware.httpunit.WebTable webTable,
int row,
int column,
String text)
Asserts that the particular table cell does not contain the text specified.
|
void |
assertTableCellHasImage(com.meterware.httpunit.WebTable webTable,
int row,
int column,
String stringInImageSource)
Asserts that the particular table cell contains the text specified.
|
void |
assertTableCellHasNoImage(com.meterware.httpunit.WebTable webTable,
int row,
int column)
Asserts that the particular table cell contains the text specified.
|
void |
assertTableCellHasNoText(com.meterware.httpunit.WebTable webTable,
int row,
int column,
String text)
Asserts that the particular table cell does not contain the text specified.
|
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.
|
@Inject
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.StrictWhitespaceContainsCheckertable - 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 findpublic void assertTableCellDoesNotHaveText(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 findpublic void assertTableCellHasNoText(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 findpublic void assertTableCellHasImage(com.meterware.httpunit.WebTable webTable,
int row,
int column,
String stringInImageSource)
webTable - the web tablerow - the row index (zero-based)column - the column index (zero-based)stringInImageSource - the text to findpublic void assertTableCellHasNoImage(com.meterware.httpunit.WebTable webTable,
int row,
int column)
webTable - the web tablerow - the row index (zero-based)column - the column index (zero-based)Copyright © 2002-2019 Atlassian. All Rights Reserved.