|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
| 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 |
Window.titleEquals(String expected)
|
Assertion |
Window.isModal()
|
Assertion |
UISpecTestCase.not(Assertion assertion)
Returns a negation of the given assertion. |
Assertion |
UISpecTestCase.and(Assertion assertion1,
Assertion assertion2)
Returns the intersection of two assertions. |
Assertion |
UISpecTestCase.and(Assertion[] assertions)
Returns the intersection of two assertions. |
Assertion |
UISpecTestCase.or(Assertion assertion1,
Assertion assertion2)
Returns the union of two assertions. |
Assertion |
UISpecTestCase.or(Assertion[] assertions)
Returns the union of two assertions. |
Assertion |
UIComponent.isEnabled()
Checks if the component is enabled. |
Assertion |
Tree.contentEquals(String expectedContents)
Checks the nodes structure displayed by the jTree. |
Assertion |
Tree.contains(String path)
Checks that a node identified by the given path is present in the jTree. |
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 |
Tree.selectionIsEmpty()
Checks that the selection is empty. |
Assertion |
Tree.foregroundEquals(String path,
String color)
Checks the font color used on a given node. |
Assertion |
Tree.pathIsExpanded(String path)
Checks that the a given node of the jTree is expanded - i.e. that its children are made visible. |
Assertion |
ToggleButton.isSelected()
|
Assertion |
TextBox.textIsEmpty()
|
Assertion |
TextBox.htmlEquals(String html)
Checks the displayed text in cases where HTML text is used. |
Assertion |
TextBox.textContains(String[] orderedTexts)
Checks that the text box contains a number of substrings, in a given order. |
Assertion |
TextBox.textEquals(String text)
|
Assertion |
TextBox.textContains(String text)
|
Assertion |
TextBox.textDoesNotContain(String text)
|
Assertion |
TextBox.isEditable()
|
Assertion |
TextBox.iconEquals(Icon icon)
Checks the icon displayed by the component. |
Assertion |
Table.hasHeader()
Checks that no header is displayed for this table. |
Assertion |
Table.contentEquals(Object[][] expected)
Checks the values displayed in the table. |
Assertion |
Table.contentEquals(String[] columnNames,
Object[][] expected)
Checks the values displayed in the table for a given set of columns. |
Assertion |
Table.rowEquals(int rowIndex,
Object[] expectedRow)
|
Assertion |
Table.rowEquals(int rowIndex,
String[] columnNames,
Object[] expected)
|
Assertion |
Table.columnEquals(int columnIndex,
Object[] expectedColumn)
|
Assertion |
Table.isEmpty()
|
Assertion |
Table.foregroundEquals(Object[][] colors)
Checks the foreground color of the table cells |
Assertion |
Table.backgroundEquals(Object[][] colors)
Checks the background color of the table cells |
Assertion |
Table.borderEquals(Border[][] borders)
|
Assertion |
Table.isEditable(boolean[][] expected)
|
Assertion |
Table.columnIsEditable(int columnIndex,
boolean isEditable)
|
Assertion |
Table.cellIsEditable(int rowIndex,
int columnIndex)
|
Assertion |
Table.columnIsEditable(String columnName,
boolean shouldBeEditable)
|
Assertion |
Table.selectionIsEmpty()
|
Assertion |
Table.selectionEquals(boolean[][] expected)
Checks the selection on a cell-by-cell basis. |
Assertion |
Table.rowIsSelected(int rowIndex)
|
Assertion |
Table.cellIsSelected(int rowIndex,
int columnIndex)
|
Assertion |
Table.columnSizeEquals(String columnName,
int expectedWidth)
|
Assertion |
Table.columnSizeEquals(int columnIndex,
int expectedWidth)
|
Assertion |
Table.rowsAreSelected(int[] rowIndexes)
|
Assertion |
Table.Header.contentEquals(String[] expectedHeaders)
Checks the column names. |
Assertion |
Table.Header.backgroundEquals(Object[] expectedColors)
Checks the background color on each column of the table header. |
Assertion |
TabGroup.tabColorEquals(String[] colors)
|
Assertion |
TabGroup.selectedTabEquals(String tabLabel)
|
Assertion |
TabGroup.tabNamesEquals(String[] tabLabels)
|
Assertion |
Spinner.valueEquals(Object expectedValue)
Checks that the spinner displays the given value |
Assertion |
Spinner.previousValueEquals(Object expectedPreviousValue)
Checks that the previous value is the given value |
Assertion |
Spinner.nextValueEquals(Object expectedNextValue)
Checks that the next value is the given value |
Assertion |
Slider.labelsEqual(String[] expected)
Checks the slider labels in order. |
Assertion |
Slider.positionEquals(String expectedLabel)
Checks that the current position corresponds to the specified label |
Assertion |
Slider.relativePositionEquals(int expectedValue)
Checks the knob position as a percentage (0-100) of the available range. |
Assertion |
RadioButton.isSelected()
|
Assertion |
ProgressBar.completionEquals(int expectedValue)
Checks the completion value as a percentage (0-100) of the available range. |
Assertion |
ProgressBar.isCompleted()
Checks the completion of the progress bar. |
Assertion |
ProgressBar.displayedValueEquals(String expectedProgressString)
|
Assertion |
PasswordField.passwordEquals(String hiddenPassword)
|
Assertion |
Panel.containsUIComponent(Class uicomponentClass)
|
Assertion |
Panel.containsSwingComponent(Class swingComponentClass)
|
Assertion |
Panel.containsUIComponent(Class uiComponentClass,
String name)
|
Assertion |
Panel.containsSwingComponent(Class swingComponentClass,
String name)
|
Assertion |
Panel.containsComponent(ComponentMatcher matcher)
|
Assertion |
Panel.containsLabel(String text)
Checks that the panel contains a given non-editable text. |
Assertion |
NumberSpinner.minEquals(int expectedMin)
Checks that the list spinner displays starts with the given value |
Assertion |
NumberSpinner.maxEquals(int expectedMax)
Checks that the list spinner displays starts with the given value |
Assertion |
NumberSpinner.stepSizeEquals(int expectedStepSize)
Checks that the list spinner computes previous and next value with the given value. |
Assertion |
MenuItem.contentEquals(String[] expectedNames)
|
Assertion |
MenuItem.contentEquals(String xmlContent)
|
Assertion |
MenuBar.contentEquals(String[] menuNames)
Checks the names displayed in the menu, ommiting separators. |
Assertion |
ListSpinner.contentEquals(Object[] expectedContents)
Checks the list spinner contents |
Assertion |
ListBox.isEmpty()
|
Assertion |
ListBox.contentEquals(String[] displayedValues)
|
Assertion |
ListBox.contains(String item)
|
Assertion |
ListBox.contains(String[] items)
|
Assertion |
ListBox.selectionIsEmpty()
|
Assertion |
ListBox.selectionEquals(String item)
|
Assertion |
ListBox.selectionEquals(String[] items)
|
Assertion |
Desktop.containsWindow(String title)
|
Assertion |
DateSpinner.startDateEquals(String expectedStartDate)
Checks that the date spinner displays starts with the given value |
Assertion |
DateSpinner.endDateEquals(String expectedEndDate)
Checks that the date spinner displays ends with the given value |
Assertion |
DateSpinner.calendarFieldsEquals(int expectedCalendarFields)
Checks that the date spinner computes previous and next value with the given value. |
Assertion |
ComboBox.contentEquals(String[] expected)
|
Assertion |
ComboBox.contains(String item)
|
Assertion |
ComboBox.contains(String[] items)
|
Assertion |
ComboBox.isEmpty(String displayedValue)
Checks that the combo box displays the given value and that it shows no elements when expanded. |
Assertion |
ComboBox.selectionEquals(String selection)
|
Assertion |
ComboBox.isEditable()
|
Assertion |
CheckBox.isSelected()
|
Assertion |
AbstractUIComponent.isVisible()
|
Assertion |
AbstractUIComponent.isEnabled()
|
Assertion |
AbstractUIComponent.foregroundEquals(String expectedColor)
Checks the foreground color of the component. |
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 |
AbstractButton.textEquals(String text)
|
| Methods in org.uispec4j with parameters of type Assertion | |
void |
UISpecTestCase.assertTrue(Assertion assertion)
Checks the given assertion. |
void |
UISpecTestCase.waitUntil(Assertion assertion,
long waitTimeLimit)
Waits for at most 'waitTimeLimit' ms until the assertion is true. |
void |
UISpecTestCase.assertFalse(Assertion assertion)
Checks that the given assertion fails. |
void |
UISpecTestCase.assertTrue(String message,
Assertion assertion)
Checks the given assertion. |
void |
UISpecTestCase.waitUntil(String message,
Assertion assertion,
long waitTimeLimit)
Waits for at most 'waitTimeLimit' ms until the assertion is true. |
void |
UISpecTestCase.assertFalse(String message,
Assertion assertion)
Checks that the given assertion fails. |
Assertion |
UISpecTestCase.not(Assertion assertion)
Returns a negation of the given assertion. |
Assertion |
UISpecTestCase.and(Assertion assertion1,
Assertion assertion2)
Returns the intersection of two assertions. |
Assertion |
UISpecTestCase.and(Assertion[] assertions)
Returns the intersection of two assertions. |
Assertion |
UISpecTestCase.or(Assertion assertion1,
Assertion assertion2)
Returns the union of two assertions. |
Assertion |
UISpecTestCase.or(Assertion[] assertions)
Returns the union 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. |
| Uses of Assertion in org.uispec4j.assertion |
| Methods in org.uispec4j.assertion that return Assertion | |
static Assertion |
UISpecAssert.not(Assertion assertion)
Returns a negation of the given assertion. |
static Assertion |
UISpecAssert.and(Assertion[] assertions)
Returns the intersection of the Assertion parameters. |
static Assertion |
UISpecAssert.or(Assertion[] assertions)
Returns the union of the Assertion parameters. |
| Methods in org.uispec4j.assertion with parameters of type Assertion | |
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 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.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. |
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 Assertion |
UISpecAssert.not(Assertion assertion)
Returns a negation of the given assertion. |
static Assertion |
UISpecAssert.and(Assertion[] assertions)
Returns the intersection of the Assertion parameters. |
static Assertion |
UISpecAssert.or(Assertion[] assertions)
Returns the union of the Assertion parameters. |
|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||