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.AbstractButtonUnderstands an action, executed in the event dispatch thread, that indicates whether anis selected or not.AbstractButtonUnderstands an action, executed in the event dispatch thread, that returns the text of an.AbstractButtonUnderstands the base class for implementations of.JTableCellWriterUnderstands utility methods related tos.ActionUnderstands a basic implementation of.CellRendererReaderUnderstands the default implementation of.JComboBoxCellReaderUnderstands the default implementation of.JListCellReaderUnderstands the default implementation of.JTableCellReaderUnderstands the default implementation of.JTableCellWriterUnderstands the default implementation of.JTreeCellReaderUnderstands reading the value of athat used as a cell renderer.ComponentCommon validation methods.Understands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.ComponentUnderstands 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.ComponentUnderstands a task that sets the size of a.ComponentUnderstands waiting for ato be shown.ComponentUnderstands validation of the state of a.ComponentUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.ContainerUnderstands validation of the state of a.ContainerUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.DialogUnderstands an action, executed in the event dispatch thread, that indicates whether ais modal or not.DialogDeprecated.Understands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.FrameUnderstands a location in a horizontal.JScrollBarUnderstands calculation of a valid position of a horizontal's divider, while respecting the minimum sizes of the right and left component inside theJSplitPaneJSplitPane.Understands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JAppletUnderstands an action that validates that the editor of ais accessible or not.JComboBoxUnderstands an action, executed in the event dispatch thread, that returns an array ofStrings that represents the contents of a given.JComboBoxUnderstands functional testing ofes: user input simulation state verification property value query This class is intended for internal use only.JComboBoxUnderstands an action, executed in the event dispatch thread, that indicates whether ais editable or not.JComboBoxUnderstands an action, executed in the event dispatch thread, that returns the number of items in a given.JComboBoxUnderstands verification that a given number is a valid index of an item in a.JComboBoxUnderstands lookup of the first item in awhose value matches a given one.JComboBoxUnderstands an action, executed in the event dispatch thread, that returns the selected index in a.JComboBoxUnderstands an action, executed in the event dispatch thread, that returns the selected value of aas plain text.JComboBoxUnderstands a task that shows/hides the drop-down menu of a.JComboBoxUnderstands a task that selects the element in the given index in the given.JComboBoxUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JComponentUnderstands an action that returns the toolTip text of a given.JComponentUnderstands an action, executed in the event dispatch thread, that returns the text used in the "approve button" of a.JFileChooserUnderstands an action that returns the text used in the "cancel" button of a.JFileChooserUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JFileChooserUnderstands a task that selects a file in a.JFileChooserUnderstands a task that sets the current directory in a.JFileChooserUnderstands an action to execute on a.JInternalFrameUnderstands a task that closes a.JInternalFrameUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JInternalFrameUnderstands an action that indicates if ais iconified or not.JInternalFrameUnderstands a task that iconifies or de-iconifies a.JInternalFrameUnderstands a task that maximizes or restores a.JInternalFrameUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JLabelUnderstands an action, executed in the event dispatch thread, that returns the text of a.JLabelUnderstands 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.JListUnderstands an action, executed in the event dispatch thread, that returns an array ofStrings that represents the contents of a given.JListUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JListUnderstands an action, executed in the event dispatch thread, that returns the number of items in a given.JListUnderstands verification that a given number is a valid index of an item in a.JListUnderstands an action, executed in the event dispatch thread, that returns the value, as text, of an item in a.JListUnderstands lookup of the first item in awhose value matches a given one.JListUnderstands actions, executed in the event dispatch thread, that perform scrolling to an element in a.JListUnderstands an action, executed in the event dispatch thread, that returns the smallest selection index in a.JListUnderstands an action, executed in the event dispatch thread, that returns the selected indices in aJListUnderstands an action, executed in the event dispatch thread, that theStringthat represents the single selection of a givenJListUnderstands an action, executed in the event dispatch thread, that returns an array ofStrings that represents the selection of a givenJListUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JMenuItemUnderstands the location of a.JMenuItemMatches agiven a simple label or a menu path of the format "menu|submenu|menuitem", for example "File|Open|Can of worms".JMenuItemUnderstands an action, executed in the event dispatch thread, that returns the pop-up menu associated with a.JMenuUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JOptionPaneUnderstands an action, executed in the event dispatch thread, that returns the message of a.JOptionPaneUnderstands an action, executed in the event dispatch thread, that returns the type of message of a.JOptionPaneUnderstands message types of a.JOptionPaneUnderstands an action, executed in the event dispatch thread, that returns the choices the user can make in a.JOptionPaneUnderstands an action, executed in the event dispatch thread, that returns the title of a.JOptionPaneUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JPopupMenuUnderstands an action, executed in the event dispatch thread, the contents of aas aJPopupMenuStringarray.Understands functional testing ofs: state verification property value query This class is intended for internal use only.JProgressBarUnderstands an action, executed in the event dispatch thread, that returns the value of the property "indeterminate" in a.JProgressBarUnderstands an action, executed in the event dispatch thread, that returns the maximum value of a.JProgressBarUnderstands an action, executed in the event dispatch thread, that returns the minimum and maximum values of a.JProgressBarUnderstands 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.JProgressBarUnderstands an EDT-safe task that waits until the value of ais equal to the given expected value.JProgressBarUnderstands an EDT-safe task that waits until the value of ais equal to the given expected value.JProgressBarUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JScrollBarUnderstands a location in a.JScrollBarUnderstands a location in ain a orientation-specific way.JScrollBarUnderstands a task that sets the value of a.This task is executed in the event dispatch thread.JScrollBarUnderstands an action, executed in the event dispatch thread, that returns the value of a.JScrollBarUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JScrollPaneUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JSliderUnderstands a location in a.JSliderUnderstands a task that sets the value of a.JSliderUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JSpinnerUnderstands a task that sets a value in a.JSpinnerUnderstands an action, executed in the event dispatch thread, that returns the value of a.JSpinnerUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JSplitPaneUnderstands calculation of a valid position of a's divider, while respecting the minimum sizes of the right and left component inside theJSplitPaneJSplitPane.Understands a task that sets the location of the divider of a.JSplitPaneUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JTabbedPaneUnderstands a location on a(notably a tab).JTabbedPaneUnderstands a task that selects the tab with the given index in a.JTabbedPaneUnderstands an action that returns the index of a tab (in a) whose title matches the given text.JTabbedPaneUnderstands an action, executed in the event dispatch thread, that returns the titles of the tabs in a.JTabbedPaneUnderstands a task that cancels editing of a cell in a.JTableUnderstands an action, executed in the event dispatch thread, that indicates whether a cell in ais editable or not.JTableUnderstands validation of-related information.JTableUnderstands an action, executed in the event dispatch thread, that returns the value in acell.JTableUnderstands an implementation ofthat knows how to useJTableCellWriters as cell editors.JTextComponentUnderstands an action, executed in the event dispatch thread, that returns the number of columns in a.JTableUnderstands an implementation ofthat knows how to useJTableCellWriteres as cell editors.JComboBoxUnderstands an action, executed in the event dispatch thread, that returns the contents of aas a two-dimensionalJTableStringarray.Understands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JTableUnderstands an action that indicates whether ahas any selection or not.JTableUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JTableHeaderUnderstands the location of a(a coordinate, column index or value.)JTableHeaderUnderstands an action, executed in the event dispatch thread, that returns thein aJTableHeader.JTableUnderstands a visible location on a.JTableUnderstands an action, executed in the event dispatch thread, that returns the first cell in awhose value matches the given one.JTableUnderstands an action, executed in the event dispatch thread, that returns the number of rows in a.JTableUnderstands an action that indicates whether a cell in ais selected or not.JTableUnderstands a task that stops editing of a cell in a.JTableUnderstands an implementation ofthat knows how to useJTableCellWriters as cell editors.JTextComponentUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JTextComponentUnderstands an action, executed in the event dispatch thread, that indicates whether ais editable or not.JTextComponentUnderstands a task that selects text in a given.JTextComponentUnderstands a task that sets text in a given.JTextComponentUnderstands an action, executed in the event dispatch thread, that returns the text of a.JTextComponentUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JToolBarUnderstands an action, executed in the event dispatch thread, that indicates whether ais floating or not.JToolBarUnderstands a visible location on a.JToolBarUnderstands a task that adds the root node of ato a given path if such root is invisible.JTreeUnderstands an action, executed in the event dispatch thread, that returns how many children a node in ahas.JTreeUnderstands a condition that verifies that the children of a node in aare displayed.JTreeUnderstands a task that clears the selection in a given.JTreeUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.JTreeUnderstands an action, executed in the event dispatch thread, that indicates whether ais editable or not.JTreeUnderstands a task that ensures that the node identified by the specified path is expanded and viewable.Understands a visible location on a.JTreeUnderstands an action, executed in the event dispatch thread, that finds a path in athat matches a givenJTreeString.Understands a query that returns the text of a node in a.JTreeUnderstands lookup ofs which text matches the given one.TreePathUnderstands a task that uses reflection to toggle the "expand state" of a node in a given.JTextComponentUnderstands verification that ahas the expected selection.JTreeUnderstands utility methods related to.KeyStrokeUnderstands an action, executed in the event dispatch thread, that returns theused to paint aComponent.MenuElementUnderstands 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 aup or down.JTextFieldDeprecated.Useinstead.ScrollingUnderstands assertion methods for text.TextDisplayDriver<T extends Component>Understands functional testing of athat displays text.ComponentUnderstands a location in a horizontal.JScrollBarUnderstands calculation of a valid position of a vertical's divider, while respecting the minimum sizes of the right and left component inside theJSplitPaneJSplitPane.Understands a condition that verifies that ais showing on the screen.ComponentUnderstands functional testing ofs: user input simulation state verification property value query This class is intended for internal use only.WindowUnderstands locations of the control buttons in a window-like container.Understands a task that moves ato the front and gives it input focus.Window
instead.ComponentDragAndDrop