org.uispec4j |
Provides classes for handling user interface components.
|
Java Source File Name | Type | Comment |
AbstractButton.java | Class | |
AbstractTextBoxHandlerForTextComponent.java | Class | |
AbstractUIComponent.java | Class | Base class for UIComponent implementations. |
AbstractUIComponentTest.java | Class | |
Button.java | Class | Wrapper for JButton components. |
ButtonTest.java | Class | |
ButtonTestCase.java | Class | |
CheckBox.java | Class | Wrapper for JCheckBox components. |
CheckBoxTest.java | Class | |
Clipboard.java | Class | Utility for changing and checking the contents of the system's clipboard. |
ClipboardTest.java | Class | |
ComboBox.java | Class | Wrapper for JComboBox components.
This class provides means for checking the contents and selection of the comboBox,
changing the selection, etc. |
ComboBoxTest.java | Class | |
ComponentAmbiguityException.java | Class | Thrown when several components match a given search specification in
Panel . |
DateSpinner.java | Class | Wrapper for JSpinner components implementing a SpinnerDateModel. |
DateSpinnerTest.java | Class | |
DefaultListBoxCellValueConverter.java | Class | Default implementation for the ListBoxCellValueConverter interface. |
DefaultTableCellValueConverter.java | Class | Default implementation for the TableCellValueConverter interface.
This converter returns the displayed value for JLabel and JComboBox components, and a Boolean
in the case of a JCheckBox. |
DefaultTreeCellValueConverter.java | Class | Default implementation for the TreeCellValueConverter interface. |
Desktop.java | Class | Wrapper for Multiple Desktop Interface (MDI) widgets implemented as JDesktopPane components. |
DesktopTest.java | Class | |
ItemAmbiguityException.java | Class | Thrown by UIComponents when a search cannot identify a single result. |
ItemNotFoundException.java | Class | |
Key.java | Class | Contants class defining keyboard keys. |
ListBox.java | Class | Wrapper for JList components.
This class provides means for checking the contents and selection of the list,
changing the selection, etc. |
ListBoxCellValueConverter.java | Interface | Performs a conversion between internal and tested cell values in a
ListBox component
This interface is meant to be used when the JList component used by the application
uses renderers other than JLabel components. |
ListBoxTest.java | Class | |
ListSpinner.java | Class | Wrapper for JSpinner components implementing a SpinnerListModel. |
ListSpinnerTest.java | Class | |
MenuBar.java | Class | Wrapper for JMenuBar components.
A MenuBar is a container for top-level menu items represented by
MenuItem components. |
MenuBarTest.java | Class | |
MenuItem.java | Class | Wrapper for menu items (commands or sub-menus) such as JMenu, JMenuItem or JPopupMenu.
A given MenuItem can be either a command, or a sub-menu containing other MenuItem
components. |
MenuItemForJMenuTest.java | Class | |
MenuItemForJPopupMenuTest.java | Class | |
MenuItemTestCase.java | Class | |
ModelTableCellValueConverter.java | Class | Converter that returns the object managed by the underlying JTable's model. |
Mouse.java | Class | Utility for simulating mouse inputs. |
MouseLogger.java | Class | |
NumberSpinner.java | Class | Wrapper for JSpinner components implementing a SpinnerNumberModel. |
NumberSpinnerTest.java | Class | |
Panel.java | Class | General container for UI components.
This class offers a set of "getXxx" methods for retrieving the different kinds of UIComponent
instances laid out in a GUI panel.
It also provides a set of generic find/get methods, with the following naming logic:
- 'find...' stands for a unitary search that returns null when nothing was found
- 'getXxxComponent' stands for a unitary search that throws an exception
when nothing was found
- 'getXxxComponents' stands for plural search and returns an empty array
when nothing was found
- 'getXxxComponents' stands for plural search and returns an empty array
when nothing was found
- 'containsXxxComponents' returns an assertion for checking the presence
of a component
NOTE: A Panel can be created from any AWT Container, but when a Panel is searched with the
Panel.getPanel(String) method only components of type JPanel JInternalFrame, etc. |
PanelTest.java | Class | |
PasswordField.java | Class | Wrapper for JPasswordField components. |
PasswordFieldTest.java | Class | |
ProgressBar.java | Class | Wrapper for JProgressBar components. |
ProgressBarTest.java | Class | |
RadioButton.java | Class | Wrapper for JRadioButton components. |
RadioButtonTest.java | Class | |
Slider.java | Class | Wrapper for JSlider components.
This class provides means for checking the contents and the current position of the knob,
changing the position, etc. |
SliderTest.java | Class | |
Spinner.java | Class | Wrapper for JSpinner components. |
SpinnerTest.java | Class | |
SpinnerTestCase.java | Class | |
SwingComponentStringifier.java | Class | |
TabGroup.java | Class | Wrapper for JTabbedPane components. |
TabGroupTest.java | Class | |
Table.java | Class | Wrapper for JTable components.
The contents of the underlying table can be usually checked with String or Boolean values,
as in the following example:
assertTrue(table.contentEquals(new String[]{
{"Bart", "Simpson"},
{"Marge", "Simpson"}
}));
The conversion between the values (Strings) given in the test and the values
actually displayed by the table renderer is performed by a dedicated
TableCellValueConverter , which retrieves the graphical component that draws
the table cells and determines the displayed value accordingly. |
TableCellValueConverter.java | Interface | |
TableComponentTest.java | Class | |
TableContentTest.java | Class | |
TableEditionTest.java | Class | |
TableHeaderTest.java | Class | |
TableSelectionTest.java | Class | |
TableTestCase.java | Class | |
TestUtils.java | Class | |
TextBox.java | Class | Wrapper for JTextComponent/JLabel components. |
TextBoxComponentTestCase.java | Class | |
TextboxForHtmlTestComponentTest.java | Class | |
TextBoxForLabelTest.java | Class | |
TextBoxForRawTextComponentTest.java | Class | |
TextBoxForTextComponentTest.java | Class | |
TextBoxHandlerForHtmlTextComponent.java | Class | |
TextBoxHandlerForLabel.java | Class | |
TextBoxHandlerForRawTextComponent.java | Class | |
ToggleButton.java | Class | Wrapper for JToggleButton components. |
ToggleButtonTest.java | Class | |
Tree.java | Class | Wrapper for JTree components.
The nodes of a tree are identified using stringified paths. |
TreeCellValueConverter.java | Interface | |
TreeClickingTest.java | Class | |
TreeComponentTest.java | Class | |
TreeContentTest.java | Class | |
TreeExpansionTest.java | Class | |
TreeSelectionTest.java | Class | |
TreeTestCase.java | Class | |
Trigger.java | Interface | Interface for window interception triggers - UI interactions which display a window.
Ready-to-use triggers are made available by several components such as Buttons or Menus. |
UIComponent.java | Interface | Interface for all UI (user interface) components. |
UIComponentTestCase.java | Class | |
UISpec4J.java | Class | Facade for the initialization of the library, mainly used for the interception mechanism. |
UISpecAdapter.java | Interface | Interface for adapting a UISpec4J test suite to a given application. |
UISpecTestCase.java | Class | UISpec4J-enabled TestCase class.
Test cases derived from this class automatically set up the instanciation mechanism. |
UISpecTestCaseTest.java | Class | |
Window.java | Class | Wrapper for window components such as JFrame, JDialog, JInternalFrame. |
WindowForAwtWindowTest.java | Class | |
WindowForDialogTest.java | Class | |
WindowForFrameTest.java | Class | |
WindowForInternalFrameTest.java | Class | Test class for
Window . |
WindowForJFrameTest.java | Class | |
WindowTestCase.java | Class | |