Package org.fest.swing.driver
package org.fest.swing.driver
Drivers that simulate user input on GUI
s. Unlike fixtures, drivers only focus on
behavior present only in the components they handle, do not provide a
fluent interface and are intended for
internal use only.
Component
Classes in this package have been adapted from Abbot. Many thanks to Timothy Wall.
-
ClassDescriptionUnderstands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.AbstractButton
Understands an action, executed in the event dispatch thread, that indicates whether an
is selected or not.AbstractButton
Understands an action, executed in the event dispatch thread, that returns the text of an
.AbstractButton
Understands the base class for implementations of
.JTableCellWriter
Understands utility methods related to
s.Action
Understands a basic implementation of
.CellRendererReader
Understands the default implementation of
.JComboBoxCellReader
Understands the default implementation of
.JListCellReader
Understands the default implementation of
.JTableCellReader
Understands the default implementation of
.JTableCellWriter
Understands the default implementation of
.JTreeCellReader
Understands reading the value of a
that used as a cell renderer.Component
Common validation methods.Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.Component
Understands a condition that verifies that a component is enabled.Understands a query that indicates whether it is possible for the user to move the given component.Understands a task that sets the location of a
.Component
Understands a task that sets the size of a
.Component
Understands waiting for a
to be shown.Component
Understands validation of the state of a
.Component
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.Container
Understands validation of the state of a
.Container
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.Dialog
Understands an action, executed in the event dispatch thread, that indicates whether a
is modal or not.Dialog
Deprecated.Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.Frame
Understands a location in a horizontal
.JScrollBar
Understands calculation of a valid position of a horizontal
's divider, while respecting the minimum sizes of the right and left component inside theJSplitPane
JSplitPane
.Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JApplet
Understands an action that validates that the editor of a
is accessible or not.JComboBox
Understands an action, executed in the event dispatch thread, that returns an array ofString
s that represents the contents of a given
.JComboBox
Understands functional testing of
es: user input simulation state verification property value query This class is intended for internal use only.JComboBox
Understands an action, executed in the event dispatch thread, that indicates whether a
is editable or not.JComboBox
Understands an action, executed in the event dispatch thread, that returns the number of items in a given
.JComboBox
Understands verification that a given number is a valid index of an item in a
.JComboBox
Understands lookup of the first item in a
whose value matches a given one.JComboBox
Understands an action, executed in the event dispatch thread, that returns the selected index in a
.JComboBox
Understands an action, executed in the event dispatch thread, that returns the selected value of a
as plain text.JComboBox
Understands a task that shows/hides the drop-down menu of a
.JComboBox
Understands a task that selects the element in the given index in the given
.JComboBox
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JComponent
Understands an action that returns the toolTip text of a given
.JComponent
Understands an action, executed in the event dispatch thread, that returns the text used in the "approve button" of a
.JFileChooser
Understands an action that returns the text used in the "cancel" button of a
.JFileChooser
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JFileChooser
Understands a task that selects a file in a
.JFileChooser
Understands a task that sets the current directory in a
.JFileChooser
Understands an action to execute on a
.JInternalFrame
Understands a task that closes a
.JInternalFrame
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JInternalFrame
Understands an action that indicates if a
is iconified or not.JInternalFrame
Understands a task that iconifies or de-iconifies a
.JInternalFrame
Understands a task that maximizes or restores a
.JInternalFrame
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JLabel
Understands an action, executed in the event dispatch thread, that returns the text of a
.JLabel
Understands an action that returns the bounding rectangle for the cell specified by the given index.Understands calculation of the center of a cell in a
.JList
Understands an action, executed in the event dispatch thread, that returns an array ofString
s that represents the contents of a given
.JList
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JList
Understands an action, executed in the event dispatch thread, that returns the number of items in a given
.JList
Understands verification that a given number is a valid index of an item in a
.JList
Understands an action, executed in the event dispatch thread, that returns the value, as text, of an item in a
.JList
Understands lookup of the first item in a
whose value matches a given one.JList
Understands actions, executed in the event dispatch thread, that perform scrolling to an element in a
.JList
Understands an action, executed in the event dispatch thread, that returns the smallest selection index in a
.JList
Understands an action, executed in the event dispatch thread, that returns the selected indices in aJList
Understands an action, executed in the event dispatch thread, that theString
that represents the single selection of a givenJList
Understands an action, executed in the event dispatch thread, that returns an array ofString
s that represents the selection of a givenJList
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JMenuItem
Understands the location of a
.JMenuItem
Matches a
given a simple label or a menu path of the format "menu|submenu|menuitem", for example "File|Open|Can of worms".JMenuItem
Understands an action, executed in the event dispatch thread, that returns the pop-up menu associated with a
.JMenu
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JOptionPane
Understands an action, executed in the event dispatch thread, that returns the message of a
.JOptionPane
Understands an action, executed in the event dispatch thread, that returns the type of message of a
.JOptionPane
Understands message types of a
.JOptionPane
Understands an action, executed in the event dispatch thread, that returns the choices the user can make in a
.JOptionPane
Understands an action, executed in the event dispatch thread, that returns the title of a
.JOptionPane
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JPopupMenu
Understands an action, executed in the event dispatch thread, the contents of a
as aJPopupMenu
String
array.Understands functional testing of
s: state verification property value query This class is intended for internal use only.JProgressBar
Understands an action, executed in the event dispatch thread, that returns the value of the property "indeterminate" in a
.JProgressBar
Understands an action, executed in the event dispatch thread, that returns the maximum value of a
.JProgressBar
Understands an action, executed in the event dispatch thread, that returns the minimum and maximum values of a
.JProgressBar
Understands an action, executed in the event dispatch thread, that returns the text of a code>JProgressBar
.Understands an action, executed in the event dispatch thread, that returns the value of a
.JProgressBar
Understands an EDT-safe task that waits until the value of a
is equal to the given expected value.JProgressBar
Understands an EDT-safe task that waits until the value of a
is equal to the given expected value.JProgressBar
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JScrollBar
Understands a location in a
.JScrollBar
Understands a location in a
in a orientation-specific way.JScrollBar
Understands a task that sets the value of a
.This task is executed in the event dispatch thread.JScrollBar
Understands an action, executed in the event dispatch thread, that returns the value of a
.JScrollBar
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JScrollPane
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JSlider
Understands a location in a
.JSlider
Understands a task that sets the value of a
.JSlider
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JSpinner
Understands a task that sets a value in a
.JSpinner
Understands an action, executed in the event dispatch thread, that returns the value of a
.JSpinner
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JSplitPane
Understands calculation of a valid position of a
's divider, while respecting the minimum sizes of the right and left component inside theJSplitPane
JSplitPane
.Understands a task that sets the location of the divider of a
.JSplitPane
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JTabbedPane
Understands a location on a
(notably a tab).JTabbedPane
Understands a task that selects the tab with the given index in a
.JTabbedPane
Understands an action that returns the index of a tab (in a
) whose title matches the given text.JTabbedPane
Understands an action, executed in the event dispatch thread, that returns the titles of the tabs in a
.JTabbedPane
Understands a task that cancels editing of a cell in a
.JTable
Understands an action, executed in the event dispatch thread, that indicates whether a cell in a
is editable or not.JTable
Understands validation of
-related information.JTable
Understands an action, executed in the event dispatch thread, that returns the value in a
cell.JTable
Understands an implementation of
that knows how to useJTableCellWriter
s as cell editors.JTextComponent
Understands an action, executed in the event dispatch thread, that returns the number of columns in a
.JTable
Understands an implementation of
that knows how to useJTableCellWriter
es as cell editors.JComboBox
Understands an action, executed in the event dispatch thread, that returns the contents of a
as a two-dimensionalJTable
String
array.Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JTable
Understands an action that indicates whether a
has any selection or not.JTable
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JTableHeader
Understands the location of a
(a coordinate, column index or value.)JTableHeader
Understands an action, executed in the event dispatch thread, that returns the
in aJTableHeader
.JTable
Understands a visible location on a
.JTable
Understands an action, executed in the event dispatch thread, that returns the first cell in a
whose value matches the given one.JTable
Understands an action, executed in the event dispatch thread, that returns the number of rows in a
.JTable
Understands an action that indicates whether a cell in a
is selected or not.JTable
Understands a task that stops editing of a cell in a
.JTable
Understands an implementation of
that knows how to useJTableCellWriter
s as cell editors.JTextComponent
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JTextComponent
Understands an action, executed in the event dispatch thread, that indicates whether a
is editable or not.JTextComponent
Understands a task that selects text in a given
.JTextComponent
Understands a task that sets text in a given
.JTextComponent
Understands an action, executed in the event dispatch thread, that returns the text of a
.JTextComponent
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JToolBar
Understands an action, executed in the event dispatch thread, that indicates whether a
is floating or not.JToolBar
Understands a visible location on a
.JToolBar
Understands a task that adds the root node of a
to a given path if such root is invisible.JTree
Understands an action, executed in the event dispatch thread, that returns how many children a node in a
has.JTree
Understands a condition that verifies that the children of a node in a
are displayed.JTree
Understands a task that clears the selection in a given
.JTree
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.JTree
Understands an action, executed in the event dispatch thread, that indicates whether a
is editable or not.JTree
Understands a task that ensures that the node identified by the specified path is expanded and viewable.Understands a visible location on a
.JTree
Understands an action, executed in the event dispatch thread, that finds a path in a
that matches a givenJTree
String
.Understands a query that returns the text of a node in a
.JTree
Understands lookup of
s which text matches the given one.TreePath
Understands a task that uses reflection to toggle the "expand state" of a node in a given
.JTextComponent
Understands verification that a
has the expected selection.JTree
Understands utility methods related to
.KeyStroke
Understands an action, executed in the event dispatch thread, that returns the
used to paint aComponent
.MenuElement
Understands converting a value from a model into aString
.Understands a template for simulating multiple selection on a GUI component.Understands an action that returns the point and parent to use as a reference when scrolling a
up or down.JTextField
Deprecated.Use
instead.Scrolling
Understands assertion methods for text.TextDisplayDriver<T extends Component>Understands functional testing of a
that displays text.Component
Understands a location in a horizontal
.JScrollBar
Understands calculation of a valid position of a vertical
's divider, while respecting the minimum sizes of the right and left component inside theJSplitPane
JSplitPane
.Understands a condition that verifies that a
is showing on the screen.Component
Understands functional testing of
s: user input simulation state verification property value query This class is intended for internal use only.Window
Understands locations of the control buttons in a window-like container.Understands a task that moves a
to the front and gives it input focus.Window
instead.ComponentDragAndDrop