Uses of Class
org.uispec4j.assertion.Assertion

Packages that use Assertion
org.uispec4j Provides classes for handling user interface components. 
org.uispec4j.assertion Provides a mechanism for checking conditions - please refer to the Using assertions documentation page for details. 
 

Uses of Assertion in org.uispec4j
 

Methods in org.uispec4j that return Assertion
 Assertion UISpecTestCase.and(Assertion... assertions)
          Returns the intersection of two assertions.
 Assertion Table.Header.backgroundEquals(java.lang.Object[] expectedColors)
          Checks the background color on each column of the table header.
 Assertion ListBox.backgroundEquals(java.lang.Object[] colors)
          Checks the background color of the List cells using either Color or String objects
 Assertion Table.backgroundEquals(java.lang.Object[][] colors)
          Checks the background color of the table cells using either Color or String objects
 Assertion AbstractUIComponent.backgroundEquals(java.lang.String expectedColor)
          Checks the background color of the component The color can be given in either hexadecimal ("FF45C0") or human-readable ("red") format.
 Assertion Table.backgroundNear(int row, int column, java.lang.Object expected)
           
 Assertion ListBox.backgroundNear(int index, java.lang.Object expected)
           
 Assertion AbstractUIComponent.backgroundNear(java.lang.String expectedColor)
          Checks that the background color of the component is close to the given value.
 Assertion Table.blockEquals(int fromRowIndex, int fromColumnIndex, int columnCount, int rowCount, java.lang.Object[][] expected)
           
 Assertion Table.borderEquals(javax.swing.border.Border[][] borders)
           
 Assertion DateSpinner.calendarFieldsEquals(int expectedCalendarFields)
          Checks that the date spinner computes previous and next value with the given value.
 Assertion Table.cellEquals(int row, int column, java.lang.Object expectedValue)
          Checks the contents of a given cell.
 Assertion Table.cellEquals(int row, int column, java.lang.Object expectedValue, TableCellValueConverter converter)
          Checks the contents of a given cell using a specific data converter.
 Assertion Table.cellIsEditable(int rowIndex, int columnIndex)
           
 Assertion Table.cellIsSelected(int rowIndex, int columnIndex)
           
 Assertion Table.columnCountEquals(int count)
           
 Assertion Table.columnEquals(int columnIndex, java.lang.Object[] expectedColumn)
           
 Assertion Table.columnIsEditable(int columnIndex, boolean isEditable)
           
 Assertion Table.columnIsEditable(java.lang.String columnName, boolean shouldBeEditable)
           
 Assertion Table.columnSizeEquals(int columnIndex, int expectedWidth)
           
 Assertion Table.columnSizeEquals(java.lang.String columnName, int expectedWidth)
           
 Assertion ProgressBar.completionEquals(int expectedValue)
          Checks the completion value as a percentage (0-100) of the available range.
 Assertion ListBox.contains(java.lang.String... items)
           
 Assertion ComboBox.contains(java.lang.String... items)
           
 Assertion Tree.contains(java.lang.String path)
          Checks that a node identified by the given path is present in the jTree.
 Assertion ListBox.contains(java.lang.String item)
           
 Assertion ComboBox.contains(java.lang.String item)
           
 Assertion Panel.containsComponent(ComponentMatcher matcher)
           
 Assertion Panel.containsLabel(java.lang.String text)
          Checks that the panel contains a given non-editable text.
 Assertion Window.containsMenuBar()
           
 Assertion Table.containsRow(int columnIndex, java.lang.Object cellContent)
          Checks that the table contains a row with a given cell.
 Assertion Table.containsRow(java.lang.Object[] expectedRow)
          Checks that the table contains a complete row.
<T extends java.awt.Component>
Assertion
Panel.containsSwingComponent(java.lang.Class<T> swingComponentClass)
           
<T extends java.awt.Component>
Assertion
Panel.containsSwingComponent(java.lang.Class<T> swingComponentClass, java.lang.String name)
           
<T extends UIComponent>
Assertion
Panel.containsUIComponent(java.lang.Class<T> uicomponentClass)
           
<T extends UIComponent>
Assertion
Panel.containsUIComponent(java.lang.Class<T> uiComponentClass, java.lang.String name)
           
 Assertion Desktop.containsWindow(java.lang.String title)
           
 Assertion Table.Header.contentEquals(int countHeaderToCheck, java.lang.String... expectedHeaders)
           
 Assertion ListSpinner.contentEquals(java.lang.Object... expectedContents)
          Checks the list spinner contents
 Assertion Table.contentEquals(java.lang.Object[][] expected)
          Checks the values displayed in the table.

Sample usage:

 Assertion Table.Header.contentEquals(java.lang.String... expectedHeaders)
          Checks the column names.
 Assertion MenuItem.contentEquals(java.lang.String... expectedNames)
           
 Assertion MenuBar.contentEquals(java.lang.String... menuNames)
          Checks the names displayed in the menu, ommiting separators.
 Assertion ListBox.contentEquals(java.lang.String... displayedValues)
           
 Assertion ComboBox.contentEquals(java.lang.String... expected)
           
 Assertion Tree.contentEquals(java.lang.String expectedContents)
          Checks the nodes structure displayed by the jTree.
 Assertion MenuItem.contentEquals(java.lang.String xmlContent)
           
 Assertion Table.contentEquals(java.lang.String[] columnNames, java.lang.Object[][] expected)
          Checks the values displayed in the table for a given set of columns.
 Assertion ProgressBar.displayedValueEquals(java.lang.String expectedProgressString)
           
 Assertion DateSpinner.endDateEquals(java.lang.String expectedEndDate)
          Checks that the date spinner displays ends with the given value
 Assertion Table.endsWith(java.lang.Object[][] expectedEndRows)
          Asserts that the contents of the table ends with the specified rows.
 Assertion ListBox.foregroundEquals(java.lang.Object[] colors)
          Checks the foreground color of the table cells using either Color or String objects
 Assertion Table.foregroundEquals(java.lang.Object[][] colors)
          Checks the foreground color of the table cells using either Color or String objects
 Assertion AbstractUIComponent.foregroundEquals(java.lang.String expectedColor)
          Checks the foreground color of the component.
 Assertion Tree.foregroundEquals(java.lang.String path, java.lang.String color)
          Checks the font color used on a given node.
 Assertion Table.foregroundNear(int row, int column, java.lang.Object expected)
           
 Assertion ListBox.foregroundNear(int index, java.lang.Object expected)
           
 Assertion AbstractUIComponent.foregroundNear(java.lang.String expectedColor)
          Checks that the foreground color of the component is close to the given value.
 Assertion Table.hasHeader()
          Checks whether a header is displayed for this table.
 Assertion TextBox.htmlEquals(java.lang.String html)
          Checks the displayed text in cases where HTML text is used.
 Assertion TextBox.iconEquals(javax.swing.Icon icon)
          Checks the icon displayed by the component.
 Assertion AbstractButton.iconEquals(javax.swing.Icon expected)
          Checks the icon displayed by the component.
 Assertion ProgressBar.isCompleted()
          Checks the completion of the progress bar.
 Assertion TextBox.isEditable()
           
 Assertion ComboBox.isEditable()
           
 Assertion Table.isEditable(boolean[][] expected)
           
 Assertion Table.isEmpty()
           
 Assertion ListBox.isEmpty()
           
 Assertion ComboBox.isEmpty(java.lang.String displayedValue)
          Checks that the combo box displays the given value and that it shows no elements when expanded.
 Assertion UIComponent.isEnabled()
           
 Assertion AbstractUIComponent.isEnabled()
           
 Assertion Window.isModal()
           
 Assertion ToggleButton.isSelected()
           
 Assertion RadioButton.isSelected()
           
 Assertion CheckBox.isSelected()
           
 Assertion UIComponent.isVisible()
           
 Assertion AbstractUIComponent.isVisible()
           
 Assertion Slider.labelsEqual(java.lang.String... expected)
          Checks the slider labels in order.
 Assertion NumberSpinner.maxEquals(int expectedMax)
          Checks that the list spinner displays starts with the given value
 Assertion NumberSpinner.minEquals(int expectedMin)
          Checks that the list spinner displays starts with the given value
 Assertion Spinner.nextValueEquals(java.lang.Object expectedNextValue)
          Checks that the next value is the given value
 Assertion UISpecTestCase.not(Assertion assertion)
          Returns a negation of the given assertion.
 Assertion UISpecTestCase.or(Assertion... assertions)
          Returns the union of two assertions.
 Assertion PasswordField.passwordEquals(java.lang.String hiddenPassword)
           
 Assertion Tree.pathIsExpanded(java.lang.String path)
          Checks that the a given node of the jTree is expanded - i.e.
 Assertion Slider.positionEquals(java.lang.String expectedLabel)
          Checks that the current position corresponds to the specified label
 Assertion Spinner.previousValueEquals(java.lang.Object expectedPreviousValue)
          Checks that the previous value is the given value
 Assertion Slider.relativePositionEquals(int expectedValue)
          Checks the knob position as a percentage (0-100) of the available range.
 Assertion Table.rowCountEquals(int count)
           
 Assertion Table.rowEquals(int rowIndex, int fromColumnIndex, int columnCount, java.lang.Object[] expectedRow)
           
 Assertion Table.rowEquals(int rowIndex, java.lang.Object[] expectedRow)
           
 Assertion Table.rowEquals(int rowIndex, java.lang.String[] columnNames, java.lang.Object[] expected)
           
 Assertion Table.rowIsSelected(int rowIndex)
           
 Assertion Table.rowsAreSelected(int... rowIndexes)
           
 Assertion TabGroup.selectedTabEquals(java.lang.String tabLabel)
           
 Assertion Table.selectionEquals(boolean[][] expected)
          Checks the selection on a cell-by-cell basis.
 Assertion ListBox.selectionEquals(java.lang.String... items)
           
 Assertion Tree.selectionEquals(java.lang.String path)
          Checks that a given node is selected, and that is is the only selection.
 Assertion ComboBox.selectionEquals(java.lang.String selection)
           
 Assertion Tree.selectionEquals(java.lang.String[] paths)
          Checks the selection contents.
 Assertion Tree.selectionIsEmpty()
          Checks that the selection is empty.
 Assertion Table.selectionIsEmpty()
           
 Assertion ListBox.selectionIsEmpty()
           
 Assertion DateSpinner.startDateEquals(java.lang.String expectedStartDate)
          Checks that the date spinner displays starts with the given value
 Assertion Table.startsWith(java.lang.Object[][] expectedFirstRows)
          Asserts that the contents of the table starts with the specified rows.
 Assertion NumberSpinner.stepSizeEquals(int expectedStepSize)
          Checks that the list spinner computes previous and next value with the given value.
 Assertion TabGroup.tabColorEquals(java.lang.String[] colors)
           
 Assertion TabGroup.tabNamesEquals(java.lang.String[] tabLabels)
           
 Assertion TextBox.textContains(java.lang.String... orderedTexts)
          Checks that the text box contains a number of substrings, in a given order.
 Assertion TextBox.textContains(java.lang.String text)
           
 Assertion TextBox.textDoesNotContain(java.lang.String text)
           
 Assertion TextBox.textEquals(java.lang.String text)
           
 Assertion AbstractButton.textEquals(java.lang.String text)
           
 Assertion TextBox.textIsEmpty()
           
 Assertion Window.titleContains(java.lang.String expected)
           
 Assertion Window.titleEquals(java.lang.String expected)
           
 Assertion TooltipComponent.tooltipContains(java.lang.String text)
           
 Assertion AbstractSwingUIComponent.tooltipContains(java.lang.String text)
           
 Assertion TooltipComponent.tooltipEquals(java.lang.String text)
           
 Assertion AbstractSwingUIComponent.tooltipEquals(java.lang.String text)
           
 Assertion Spinner.valueEquals(java.lang.Object expectedValue)
          Checks that the spinner displays the given value
 

Methods in org.uispec4j with parameters of type Assertion
 Assertion UISpecTestCase.and(Assertion... assertions)
          Returns the intersection of two assertions.
 void UISpecTestCase.assertEquals(boolean expected, Assertion assertion)
          Checks that the given assertion equals the expected parameter.
 void UISpecTestCase.assertEquals(java.lang.String message, boolean expected, Assertion assertion)
          Checks that the given assertion equals the expected parameter.
 void UISpecTestCase.assertFalse(Assertion assertion)
          Checks that the given assertion fails.
 void UISpecTestCase.assertFalse(java.lang.String message, Assertion assertion)
          Checks that the given assertion fails.
 void UISpecTestCase.assertThat(Assertion assertion)
          Checks the given assertion.
 void UISpecTestCase.assertThat(java.lang.String message, Assertion assertion)
          Checks the given assertion.
 void UISpecTestCase.assertTrue(Assertion assertion)
          Checks the given assertion.
 void UISpecTestCase.assertTrue(java.lang.String message, Assertion assertion)
          Checks the given assertion.
 Assertion UISpecTestCase.not(Assertion assertion)
          Returns a negation of the given assertion.
 Assertion UISpecTestCase.or(Assertion... assertions)
          Returns the union of two assertions.
 void UISpecTestCase.waitUntil(Assertion assertion, long waitTimeLimit)
          Waits for at most 'waitTimeLimit' ms until the assertion is true.
 void UISpecTestCase.waitUntil(java.lang.String message, Assertion assertion, long waitTimeLimit)
          Waits for at most 'waitTimeLimit' ms until the assertion is true.
 

Uses of Assertion in org.uispec4j.assertion
 

Methods in org.uispec4j.assertion that return Assertion
static Assertion UISpecAssert.and(Assertion... assertions)
          Returns the intersection of the Assertion parameters.
static Assertion UISpecAssert.failure(java.lang.String message)
           
static Assertion UISpecAssert.not(Assertion assertion)
          Returns a negation of the given assertion.
static Assertion UISpecAssert.or(Assertion... assertions)
          Returns the union of the Assertion parameters.
 

Methods in org.uispec4j.assertion with parameters of type Assertion
static Assertion UISpecAssert.and(Assertion... assertions)
          Returns the intersection of the Assertion parameters.
static void UISpecAssert.assertEquals(boolean expected, Assertion assertion)
          Checks the given assertion equals the expected parameter (with a retry strategy).
static void UISpecAssert.assertEquals(java.lang.String message, boolean expected, Assertion assertion)
          Checks the given assertion equals the expected parameter (with a retry strategy).
static void UISpecAssert.assertFalse(Assertion assertion)
          Checks that the given assertion fails (with a retry strategy).
static void UISpecAssert.assertFalse(java.lang.String message, Assertion assertion)
          Checks the given assertion fails (with a retry strategy).
static void UISpecAssert.assertThat(Assertion assertion)
          Checks that the given assertion succeeds (with a retry strategy).
static void UISpecAssert.assertThat(java.lang.String message, Assertion assertion)
          Checks that the given assertion succeeds (with a retry strategy).
static void UISpecAssert.assertTrue(Assertion assertion)
          Checks that the given assertion succeeds (with a retry strategy).
static void UISpecAssert.assertTrue(java.lang.String message, Assertion assertion)
          Checks that the given assertion succeeds (with a retry strategy).
static Assertion UISpecAssert.not(Assertion assertion)
          Returns a negation of the given assertion.
static Assertion UISpecAssert.or(Assertion... assertions)
          Returns the union of the Assertion parameters.
static void UISpecAssert.waitUntil(Assertion assertion, long waitTimeLimit)
          Waits until the given assertion becomes true.
static void UISpecAssert.waitUntil(java.lang.String message, Assertion assertion, long waitTimeLimit)
          Waits until the given assertion becomes true.
 



Copyright © 2004-2010. All Rights Reserved.