Package | Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
Assertion |
UISpecTestCase.and(Assertion... assertions)
Returns the intersection of two assertions.
|
Assertion |
Table.Header.backgroundEquals(Object[] expectedColors)
Checks the background color on each column of the table header.
|
Assertion |
ListBox.backgroundEquals(Object[] colors)
Checks the background color of the List cells using either Color or String objects
|
Assertion |
Table.backgroundEquals(Object[][] colors)
Checks the background color of the table cells using either Color or String objects
|
Assertion |
AbstractUIComponent.backgroundEquals(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,
Object expected) |
Assertion |
ListBox.backgroundNear(int index,
Object expected) |
Assertion |
AbstractUIComponent.backgroundNear(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,
Object[][] expected) |
Assertion |
Table.borderEquals(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,
Object expectedValue)
Checks the contents of a given cell.
|
Assertion |
Table.cellEquals(int row,
int column,
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,
Object[] expectedColumn) |
Assertion |
Table.columnIsEditable(int columnIndex,
boolean isEditable) |
Assertion |
Table.columnIsEditable(String columnName,
boolean shouldBeEditable) |
Assertion |
Table.columnSizeEquals(int columnIndex,
int expectedWidth) |
Assertion |
Table.columnSizeEquals(String columnName,
int expectedWidth) |
Assertion |
ProgressBar.completionEquals(int expectedValue)
Checks the completion value as a percentage (0-100) of the available range.
|
Assertion |
ComboBox.contains(String... items) |
Assertion |
ListBox.contains(String... items) |
Assertion |
ComboBox.contains(String item) |
Assertion |
Tree.contains(String path)
Checks that a node identified by the given path is present in the jTree.
|
Assertion |
ListBox.contains(String item) |
Assertion |
Panel.containsComponent(ComponentMatcher matcher) |
Assertion |
Panel.containsLabel(String text)
Checks that the panel contains a given non-editable text.
|
Assertion |
Window.containsMenuBar() |
Assertion |
Table.containsRow(int columnIndex,
Object cellContent)
Checks that the table contains a row with a given cell.
|
Assertion |
Table.containsRow(Object[] expectedRow)
Checks that the table contains a complete row.
|
<T extends Component> |
Panel.containsSwingComponent(Class<T> swingComponentClass) |
<T extends Component> |
Panel.containsSwingComponent(Class<T> swingComponentClass,
String name) |
<T extends UIComponent> |
Panel.containsUIComponent(Class<T> uicomponentClass) |
<T extends UIComponent> |
Panel.containsUIComponent(Class<T> uiComponentClass,
String name) |
Assertion |
Desktop.containsWindow(String title) |
Assertion |
Table.Header.contentEquals(int countHeaderToCheck,
String... expectedHeaders) |
Assertion |
ListSpinner.contentEquals(Object... expectedContents)
Checks the list spinner contents
|
Assertion |
Table.contentEquals(Object[][] expected)
Checks the values displayed in the table.
|
Assertion |
ComboBox.contentEquals(String... expected) |
Assertion |
Table.Header.contentEquals(String... expectedHeaders)
Checks the column names.
|
Assertion |
MenuBar.contentEquals(String... menuNames)
Checks the names displayed in the menu, ommiting separators.
|
Assertion |
ListBox.contentEquals(String... displayedValues) |
Assertion |
MenuItem.contentEquals(String... expectedNames) |
Assertion |
Tree.contentEquals(String expectedContents)
Checks the nodes structure displayed by the jTree.
|
Assertion |
MenuItem.contentEquals(String xmlContent) |
Assertion |
Table.contentEquals(String[] columnNames,
Object[][] expected)
Checks the values displayed in the table for a given set of columns.
|
Assertion |
ProgressBar.displayedValueEquals(String expectedProgressString) |
Assertion |
DateSpinner.endDateEquals(String expectedEndDate)
Checks that the date spinner displays ends with the given value
|
Assertion |
Table.endsWith(Object[][] expectedEndRows)
Asserts that the contents of the table ends with the specified rows.
|
Assertion |
ListBox.foregroundEquals(Object[] colors)
Checks the foreground color of the table cells using either Color or String objects
|
Assertion |
Table.foregroundEquals(Object[][] colors)
Checks the foreground color of the table cells using either Color or String objects
|
Assertion |
AbstractUIComponent.foregroundEquals(String expectedColor)
Checks the foreground color of the component.
|
Assertion |
Tree.foregroundEquals(String path,
String color)
Checks the font color used on a given node.
|
Assertion |
Table.foregroundNear(int row,
int column,
Object expected) |
Assertion |
ListBox.foregroundNear(int index,
Object expected) |
Assertion |
AbstractUIComponent.foregroundNear(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(String html)
Checks the displayed text in cases where HTML text is used.
|
Assertion |
AbstractButton.iconEquals(Icon expected)
Checks the icon displayed by the component.
|
Assertion |
TextBox.iconEquals(Icon icon)
Checks the icon displayed by the component.
|
Assertion |
ProgressBar.isCompleted()
Checks the completion of the progress bar.
|
Assertion |
ComboBox.isEditable() |
Assertion |
TextBox.isEditable() |
Assertion |
Table.isEditable(boolean[][] expected) |
Assertion |
Table.isEmpty() |
Assertion |
ListBox.isEmpty() |
Assertion |
ComboBox.isEmpty(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 |
CheckBox.isSelected() |
Assertion |
ToggleButton.isSelected() |
Assertion |
RadioButton.isSelected() |
Assertion |
UIComponent.isVisible() |
Assertion |
AbstractUIComponent.isVisible() |
Assertion |
Slider.labelsEqual(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(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(String hiddenPassword) |
Assertion |
Tree.pathIsExpanded(String path)
Checks that the a given node of the jTree is expanded - i.e.
|
Assertion |
Slider.positionEquals(String expectedLabel)
Checks that the current position corresponds to the specified label
|
Assertion |
Spinner.previousValueEquals(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,
Object[] expectedRow) |
Assertion |
Table.rowEquals(int rowIndex,
Object[] expectedRow) |
Assertion |
Table.rowEquals(int rowIndex,
String[] columnNames,
Object[] expected) |
Assertion |
Table.rowIsSelected(int rowIndex) |
Assertion |
Table.rowsAreSelected(int... rowIndexes) |
Assertion |
TabGroup.selectedTabEquals(String tabLabel) |
Assertion |
Table.selectionEquals(boolean[][] expected)
Checks the selection on a cell-by-cell basis.
|
Assertion |
ListBox.selectionEquals(String... items) |
Assertion |
ComboBox.selectionEquals(String selection) |
Assertion |
Tree.selectionEquals(String path)
Checks that a given node is selected, and that is is the only selection.
|
Assertion |
Tree.selectionEquals(String[] paths)
Checks the selection contents.
|
Assertion |
Table.selectionIsEmpty() |
Assertion |
Tree.selectionIsEmpty()
Checks that the selection is empty.
|
Assertion |
ListBox.selectionIsEmpty() |
Assertion |
DateSpinner.startDateEquals(String expectedStartDate)
Checks that the date spinner displays starts with the given value
|
Assertion |
Table.startsWith(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(String[] colors) |
Assertion |
TabGroup.tabNamesEquals(String[] tabLabels) |
Assertion |
TextBox.textContains(String... orderedTexts)
Checks that the text box contains a number of substrings, in a given order.
|
Assertion |
TextBox.textContains(String text) |
Assertion |
TextBox.textDoesNotContain(String text) |
Assertion |
AbstractButton.textEquals(String text) |
Assertion |
TextBox.textEquals(String text) |
Assertion |
TextBox.textIsEmpty() |
Assertion |
Window.titleContains(String expected) |
Assertion |
Window.titleEquals(String expected) |
Assertion |
TooltipComponent.tooltipContains(String text) |
Assertion |
AbstractSwingUIComponent.tooltipContains(String text) |
Assertion |
TooltipComponent.tooltipEquals(String text) |
Assertion |
AbstractSwingUIComponent.tooltipEquals(String text) |
Assertion |
Spinner.valueEquals(Object expectedValue)
Checks that the spinner displays the given value
|
Modifier and Type | Method and Description |
---|---|
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(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(String message,
Assertion assertion)
Checks that the given assertion fails.
|
void |
UISpecTestCase.assertThat(Assertion assertion)
Checks the given assertion.
|
void |
UISpecTestCase.assertThat(String message,
Assertion assertion)
Checks the given assertion.
|
void |
UISpecTestCase.assertTrue(Assertion assertion)
Checks the given assertion.
|
void |
UISpecTestCase.assertTrue(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(String message,
Assertion assertion,
long waitTimeLimit)
Waits for at most 'waitTimeLimit' ms until the assertion is true.
|
Modifier and Type | Method and Description |
---|---|
static Assertion |
UISpecAssert.and(Assertion... assertions)
Returns the intersection of the
Assertion parameters. |
static Assertion |
UISpecAssert.failure(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. |
Modifier and Type | Method and Description |
---|---|
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(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(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(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(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(String message,
Assertion assertion,
long waitTimeLimit)
Waits until the given assertion becomes true.
|
Copyright © 2004–2016. All rights reserved.