org.uispec4j

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » UISpec4J » org.uispec4j 
org.uispec4j
Provides classes for handling user interface components.
Java Source File NameTypeComment
AbstractButton.javaClass
AbstractTextBoxHandlerForTextComponent.javaClass
AbstractUIComponent.javaClass Base class for UIComponent implementations.
AbstractUIComponentTest.javaClass
Button.javaClass Wrapper for JButton components.
ButtonTest.javaClass
ButtonTestCase.javaClass
CheckBox.javaClass Wrapper for JCheckBox components.
CheckBoxTest.javaClass
Clipboard.javaClass Utility for changing and checking the contents of the system's clipboard.
ClipboardTest.javaClass
ComboBox.javaClass Wrapper for JComboBox components. This class provides means for checking the contents and selection of the comboBox, changing the selection, etc.
ComboBoxTest.javaClass
ComponentAmbiguityException.javaClass Thrown when several components match a given search specification in Panel .
DateSpinner.javaClass Wrapper for JSpinner components implementing a SpinnerDateModel.
DateSpinnerTest.javaClass
DefaultListBoxCellValueConverter.javaClass Default implementation for the ListBoxCellValueConverter interface.
DefaultTableCellValueConverter.javaClass 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.javaClass Default implementation for the TreeCellValueConverter interface.
Desktop.javaClass Wrapper for Multiple Desktop Interface (MDI) widgets implemented as JDesktopPane components.
DesktopTest.javaClass
ItemAmbiguityException.javaClass Thrown by UIComponents when a search cannot identify a single result.
ItemNotFoundException.javaClass
Key.javaClass Contants class defining keyboard keys.
ListBox.javaClass Wrapper for JList components.

This class provides means for checking the contents and selection of the list, changing the selection, etc.
ListBoxCellValueConverter.javaInterface 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.javaClass
ListSpinner.javaClass Wrapper for JSpinner components implementing a SpinnerListModel.
ListSpinnerTest.javaClass
MenuBar.javaClass Wrapper for JMenuBar components.

A MenuBar is a container for top-level menu items represented by MenuItem components.

MenuBarTest.javaClass
MenuItem.javaClass 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.javaClass
MenuItemForJPopupMenuTest.javaClass
MenuItemTestCase.javaClass
ModelTableCellValueConverter.javaClass Converter that returns the object managed by the underlying JTable's model.
Mouse.javaClass Utility for simulating mouse inputs.
MouseLogger.javaClass
NumberSpinner.javaClass Wrapper for JSpinner components implementing a SpinnerNumberModel.
NumberSpinnerTest.javaClass
Panel.javaClass 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.javaClass
PasswordField.javaClass Wrapper for JPasswordField components.
PasswordFieldTest.javaClass
ProgressBar.javaClass Wrapper for JProgressBar components.
ProgressBarTest.javaClass
RadioButton.javaClass Wrapper for JRadioButton components.
RadioButtonTest.javaClass
Slider.javaClass Wrapper for JSlider components.

This class provides means for checking the contents and the current position of the knob, changing the position, etc.

SliderTest.javaClass
Spinner.javaClass Wrapper for JSpinner components.
SpinnerTest.javaClass
SpinnerTestCase.javaClass
SwingComponentStringifier.javaClass
TabGroup.javaClass Wrapper for JTabbedPane components.
TabGroupTest.javaClass
Table.javaClass 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.javaInterface
TableComponentTest.javaClass
TableContentTest.javaClass
TableEditionTest.javaClass
TableHeaderTest.javaClass
TableSelectionTest.javaClass
TableTestCase.javaClass
TestUtils.javaClass
TextBox.javaClass Wrapper for JTextComponent/JLabel components.
TextBoxComponentTestCase.javaClass
TextboxForHtmlTestComponentTest.javaClass
TextBoxForLabelTest.javaClass
TextBoxForRawTextComponentTest.javaClass
TextBoxForTextComponentTest.javaClass
TextBoxHandlerForHtmlTextComponent.javaClass
TextBoxHandlerForLabel.javaClass
TextBoxHandlerForRawTextComponent.javaClass
ToggleButton.javaClass Wrapper for JToggleButton components.
ToggleButtonTest.javaClass
Tree.javaClass Wrapper for JTree components.

The nodes of a tree are identified using stringified paths.

TreeCellValueConverter.javaInterface
TreeClickingTest.javaClass
TreeComponentTest.javaClass
TreeContentTest.javaClass
TreeExpansionTest.javaClass
TreeSelectionTest.javaClass
TreeTestCase.javaClass
Trigger.javaInterface 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.javaInterface Interface for all UI (user interface) components.
UIComponentTestCase.javaClass
UISpec4J.javaClass Facade for the initialization of the library, mainly used for the interception mechanism.
UISpecAdapter.javaInterface Interface for adapting a UISpec4J test suite to a given application.
UISpecTestCase.javaClass UISpec4J-enabled TestCase class.

Test cases derived from this class automatically set up the instanciation mechanism.

UISpecTestCaseTest.javaClass
Window.javaClass Wrapper for window components such as JFrame, JDialog, JInternalFrame.
WindowForAwtWindowTest.javaClass
WindowForDialogTest.javaClass
WindowForFrameTest.javaClass
WindowForInternalFrameTest.javaClass Test class for Window .
WindowForJFrameTest.javaClass
WindowTestCase.javaClass
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.