|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.functest.framework.AbstractFuncTestUtil
com.atlassian.jira.functest.framework.assertions.TableAssertions
public class TableAssertions
Used to make assertions about web Tables.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil |
|---|
environmentData, FS, locators, logger, logIndentLevel, tester |
| Constructor Summary | |
|---|---|
TableAssertions(net.sourceforge.jwebunit.WebTester tester,
com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil |
|---|
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableAssertions(net.sourceforge.jwebunit.WebTester tester,
com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData)
| Method Detail |
|---|
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 match
public 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 find
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||