String
representation of GUI components.See: Description
Interface | Description |
---|---|
ComponentFormatter |
Understands a formatter that returns a
String representation of a given . |
Class | Description |
---|---|
ComponentFormatterTemplate |
Understands a template for implementations of
. |
Formatting |
Understands utility methods related to formatting.
|
IntrospectionComponentFormatter |
Understands a formatter that uses
introspection
to display property values of a
. |
JComboBoxFormatter |
Understands a formatter for
es. |
JFileChooserFormatter |
Understands a formatter for
s. |
JListFormatter |
Understands a formatter for
s. |
JOptionPaneFormatter |
Understands a formatter for
s. |
JTabbedPaneFormatter |
Understands a formatter for
s. |
JTableFormatter |
Understands a formatter for
s. |
JTreeFormatter |
Understands a formatter for
s. |
Component formatters that create a
String
representation of GUI components.
FEST-Swing provides default component
formatters for all the Swing components in the JDK. Unlike the 'toString
' method
in Swing components, the provided component formatters display only the information that can help developers
solve problems in functional tests, excluding any information related to the
appearance of GUI components (e.g. colors, layouts, sizes, etc.)
The following are some examples of the output of the some of the provided component formatters.
org.fest.swing.test.TestFrame[name='frame', title='FormattingTest', enabled=true, showing=true]
javax.swing.JButton[name='button', text='A button', enabled=false]
javax.swing.JList[name='list', selectedValues=['One', 2], contents=['One', 2, 'Three', 4], selectionMode=MULTIPLE_INTERVAL_SELECTION, enabled=true]
javax.swing.JOptionPane[message='A message', messageType=ERROR_MESSAGE, optionType=DEFAULT_OPTION, enabled=true, showing=false]
javax.swing.JTabbedPane[name='tabbedPane', selectedTabIndex=1, selectedTabTitle='Second', tabCount=2, tabTitles=['First', 'Second'], enabled=true]
:Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.