Package | Description |
---|---|
org.assertj.swing.applet |
Provides support for testing
Applet s. |
org.assertj.swing.awt |
Utility methods related to AWT.
|
org.assertj.swing.cell |
Support for reading from and writing to cells in
JComponent s (for example: JList s, JTable s,
etc). |
org.assertj.swing.core |
Low-level components that enable functional testing of AWT and Swing
Component s. |
org.assertj.swing.data |
Data structures.
|
org.assertj.swing.driver |
Component -specific test drivers. |
org.assertj.swing.fixture |
Public API, source of AssertJ-Swing's power and flexibility.
|
org.assertj.swing.format |
Formatters that create better and shorter
String representations of AWT and Swing Component s. |
org.assertj.swing.hierarchy |
Scoped
Component hierarchies. |
org.assertj.swing.launcher |
Java applications and
Applet s launcher. |
org.assertj.swing.monitor |
Monitors that track the state of AWT and Swing
Component s. |
org.assertj.swing.query |
Common-use implementations of
GuiQuery . |
org.assertj.swing.text |
Utilities for reading the text displayed in AWT or Swing
Component s. |
Modifier and Type | Method and Description |
---|---|
static AppletViewer |
AppletViewer.newViewer(Applet applet)
Creates a new
AppletViewer using a BasicAppletStub as |
static AppletViewer |
AppletViewer.newViewer(Applet applet,
AppletStub stub)
Creates a new
AppletViewer . |
static AppletViewer |
AppletViewer.newViewer(Applet applet,
Map<String,String> parameters)
Creates a new
AppletViewer . |
void |
AppletViewer.showStatus(String status)
Displays the given status message.
|
Modifier and Type | Method and Description |
---|---|
static Point |
AWT.visibleCenterOf(Component c)
Returns a point at the center of the visible area of the given AWT or Swing
Component . |
Modifier and Type | Interface and Description |
---|---|
interface |
JTableCellWriter
Edits the value of a cell in a
JTable . |
Modifier and Type | Interface and Description |
---|---|
interface |
ComponentFinder
Looks up AWT and Swing
Component s based on different search criteria, such as a Component 's name,
type or label, and custom search criteria as well. |
Modifier and Type | Method and Description |
---|---|
void |
BasicRobot.cleanUp() |
void |
BasicRobot.cleanUpWithoutDisposingWindows() |
void |
BasicRobot.click(Component c) |
void |
BasicRobot.click(Component c,
MouseButton button) |
void |
BasicRobot.click(Component c,
MouseButton button,
int times) |
void |
BasicRobot.click(Component c,
Point where) |
void |
BasicRobot.click(Component c,
Point where,
MouseButton button,
int times) |
void |
BasicRobot.click(Point where,
MouseButton button,
int times) |
void |
BasicRobot.close(Window w) |
void |
BasicRobot.doubleClick(Component c) |
void |
ComponentDragAndDrop.drag(Component target,
Point where)
Performs a drag action at the given location.
|
void |
ComponentDragAndDrop.drop(Component target,
Point where)
Ends a drag operation, releasing the mouse button over the given target location.
|
void |
BasicRobot.enterText(String text) |
Component |
BasicComponentFinder.find(ComponentMatcher m) |
Component |
BasicComponentFinder.find(Container root,
ComponentMatcher m) |
<T extends Component> |
BasicComponentFinder.find(Container root,
GenericTypeMatcher<T> m) |
<T extends Component> |
BasicComponentFinder.find(GenericTypeMatcher<T> m) |
JPopupMenu |
BasicRobot.findActivePopupMenu() |
Component |
BasicComponentFinder.findByLabel(Container root,
String label) |
Component |
BasicComponentFinder.findByLabel(Container root,
String label,
boolean showing) |
<T extends Component> |
BasicComponentFinder.findByLabel(Container root,
String label,
Class<T> type) |
<T extends Component> |
BasicComponentFinder.findByLabel(Container root,
String label,
Class<T> type,
boolean showing) |
Component |
BasicComponentFinder.findByLabel(String label) |
Component |
BasicComponentFinder.findByLabel(String label,
boolean showing) |
<T extends Component> |
BasicComponentFinder.findByLabel(String label,
Class<T> type) |
<T extends Component> |
BasicComponentFinder.findByLabel(String label,
Class<T> type,
boolean showing) |
Component |
BasicComponentFinder.findByName(Container root,
String name) |
Component |
BasicComponentFinder.findByName(Container root,
String name,
boolean showing) |
<T extends Component> |
BasicComponentFinder.findByName(Container root,
String name,
Class<T> type) |
<T extends Component> |
BasicComponentFinder.findByName(Container root,
String name,
Class<T> type,
boolean showing) |
Component |
BasicComponentFinder.findByName(String name) |
Component |
BasicComponentFinder.findByName(String name,
boolean showing) |
<T extends Component> |
BasicComponentFinder.findByName(String name,
Class<T> type) |
<T extends Component> |
BasicComponentFinder.findByName(String name,
Class<T> type,
boolean showing) |
<T extends Component> |
BasicComponentFinder.findByType(Class<T> type,
boolean showing) |
<T extends Component> |
BasicComponentFinder.findByType(Container root,
Class<T> type) |
<T extends Component> |
BasicComponentFinder.findByType(Container root,
Class<T> type,
boolean showing) |
void |
BasicRobot.focus(Component c) |
void |
BasicRobot.focusAndWaitForFocusGain(Component c) |
static Component |
FocusOwnerFinder.inEdtFocusOwner() |
void |
BasicRobot.jitter(Component c) |
void |
BasicRobot.jitter(Component c,
Point where) |
void |
BasicRobot.moveMouse(Component c) |
void |
BasicRobot.moveMouse(Component c,
int x,
int y) |
void |
BasicRobot.moveMouse(Component c,
Point p) |
void |
BasicRobot.pressAndReleaseKey(int keyCode,
int... modifiers) |
void |
BasicRobot.pressAndReleaseKeys(int... keyCodes) |
void |
BasicRobot.pressKey(int keyCode) |
void |
BasicComponentPrinter.printComponents(PrintStream out) |
void |
BasicComponentPrinter.printComponents(PrintStream out,
Class<? extends Component> type) |
void |
BasicComponentPrinter.printComponents(PrintStream out,
Class<? extends Component> type,
Container root) |
void |
BasicComponentPrinter.printComponents(PrintStream out,
Container root) |
void |
BasicRobot.releaseKey(int keyCode) |
void |
BasicRobot.releaseMouse(MouseButton button) |
void |
BasicRobot.releaseMouseButtons() |
void |
BasicRobot.requireNoJOptionPaneIsShowing() |
void |
BasicRobot.rightClick(Component c) |
JPopupMenu |
BasicRobot.showPopupMenu(Component invoker) |
JPopupMenu |
BasicRobot.showPopupMenu(Component invoker,
Point location) |
void |
BasicRobot.showWindow(Window w) |
void |
BasicRobot.showWindow(Window w,
Dimension size) |
void |
BasicRobot.showWindow(Window w,
Dimension size,
boolean pack) |
protected abstract boolean |
EdtSafeCondition.testInEDT()
Checks if the condition has been satisfied.
|
void |
BasicRobot.type(char character) |
void |
BasicRobot.waitForIdle() |
Modifier and Type | Method and Description |
---|---|
TableCell |
TableCellByColumnId.findCell(JTable table,
JTableCellReader cellReader)
Finds a cell in the given
JTable that has a matching row index and column id. |
TableCell |
TableCellInRowByValue.findCell(JTable table,
JTableCellReader cellReader)
Finds a cell in the given
JTable that:
is located in the first row whose values match the given ones
has a matching row index
|
TableCell |
TableCellFinder.findCell(JTable table,
JTableCellReader cellReader)
Finds a cell in the given
JTable based on some search criteria specified by this finder. |
Modifier and Type | Method and Description |
---|---|
void |
JAppletDriver.appletResize(int width,
int height)
Requests the default
JApplet to be resized. |
void |
JAppletDriver.appletResize(JApplet applet,
int width,
int height)
Requests the given
JApplet to be resized. |
JButton |
JFileChooserDriver.approveButton(JFileChooser fileChooser)
Finds the "Approve" button in the given
JFileChooser . |
Color |
JTableDriver.background(JTable table,
TableCell cell)
Returns the background colour of the given table cell.
|
Color |
ComponentDriver.backgroundOf(Component c)
Returns the background color of the given AWT or Swing
Component . |
JButton |
JOptionPaneDriver.buttonWithText(JOptionPane optionPane,
Pattern pattern)
Finds a button in the
JOptionPane whose text matches the given regular expression pattern. |
JButton |
JOptionPaneDriver.buttonWithText(JOptionPane optionPane,
String text)
Finds a button in the
JOptionPane containing the given text. |
JButton |
JFileChooserDriver.cancelButton(JFileChooser fileChooser)
Finds the "Cancel" button in the given
JFileChooser . |
JButton |
JOptionPaneDriver.cancelButton(JOptionPane optionPane)
Finds the "Cancel" button in the
JOptionPane . |
void |
AbstractJTableCellWriter.cancelCellEditing(JTable table,
int row,
int column) |
void |
JTableDriver.cancelCellEditing(JTable table,
TableCell cell)
Cancels editing the given cell of the
JTable , using this driver's JTableCellWriter . |
TableCell |
JTableDriver.cell(JTable table,
Pattern pattern)
Returns a cell from the given
JTable whose value matches the given regular expression pattern. |
TableCell |
JTableDriver.cell(JTable table,
String value)
Returns a cell from the given
JTable whose value matches the given one. |
TableCell |
JTableDriver.cell(JTable table,
TableCellFinder cellFinder)
Returns a cell from the given
JTable using the given cell finder. |
protected static TableCellEditor |
AbstractJTableCellWriter.cellEditor(JTable table,
int row,
int column)
Returns the editor for the given
JTable cell. |
Component |
JTableDriver.cellEditor(JTable table,
TableCell cell)
Returns the editor in the given cell of the
JTable , using this driver's JTableCellWriter . |
protected static Point |
AbstractJTableCellWriter.cellLocation(JTable table,
int row,
int column,
JTableLocation location)
Returns the location of the given table cell.
|
void |
JTableDriver.checkCellIndicesInBounds(JTable table,
TableCell cell)
Validates that the given table cell is non
null and its indices are not out of bounds. |
protected void |
ComponentDriver.checkClickAllowed(Component c)
Verifies that the given AWT or Swing
Component is enabled and showing on the screen. |
protected static void |
ComponentDriver.checkInEdtEnabledAndShowing(Component c)
Verifies that the given AWT or Swing
Component is enabled and showing on the screen. |
protected static void |
ComponentDriver.checkInEdtShowing(Component c)
Verifies that the given AWT or Swing
Component is showing on the screen. |
void |
JTreeDriver.checkPathExists(JTree tree,
String path)
Verifies that the given node path exists.
|
void |
JTreeDriver.checkRowInBounds(JTree tree,
int row)
Verifies that the given row index is valid.
|
void |
ComponentDriver.click(Component c)
Simulates a user clicking once the given AWT or Swing
Component using the left mouse button. |
void |
ComponentDriver.click(Component c,
MouseButton button)
Simulates a user clicking once the given AWT or Swing
Component using the given mouse button. |
void |
ComponentDriver.click(Component c,
MouseButton button,
int times)
Simulates a user clicking the given mouse button, the given times on the given AWT or Swing
Component . |
void |
ComponentDriver.click(Component c,
MouseClickInfo mouseClickInfo)
Simulates a user clicking the given mouse button, the given times on the given AWT or Swing
Component . |
void |
ComponentDriver.click(Component c,
Point where)
Simulates a user clicking at the given position on the given AWT or Swing
Component . |
void |
JMenuItemDriver.click(JMenuItem menuItem)
Finds and selects the given
JMenuItem . |
void |
JTableDriver.click(JTable table,
TableCell cell,
MouseButton mouseButton,
int times)
Clicks the given cell, using the specified mouse button, the given number of times.
|
void |
JFileChooserDriver.clickApproveButton(JFileChooser fileChooser)
Finds and clicks the "Approve" button in the given
JFileChooser . |
void |
JFileChooserDriver.clickCancelButton(JFileChooser fileChooser)
Finds and clicks the "Cancel" button in the given
JFileChooser . |
void |
JTableHeaderDriver.clickColumn(JTableHeader tableHeader,
int columnIndex)
Clicks the column under the given index.
|
void |
JTableHeaderDriver.clickColumn(JTableHeader tableHeader,
int columnIndex,
MouseButton button,
int times)
Clicks the column under the given index using the given mouse button the given number of times.
|
void |
JTableHeaderDriver.clickColumn(JTableHeader tableHeader,
Pattern columnNamePattern)
Clicks the column which name matches the given regular expression pattern.
|
void |
JTableHeaderDriver.clickColumn(JTableHeader tableHeader,
Pattern columnNamePattern,
MouseButton button,
int times)
Clicks the column which name matches the given regular expression pattern using the given mouse button the given
number of times.
|
void |
JTableHeaderDriver.clickColumn(JTableHeader tableHeader,
String columnName)
Clicks the column which name matches the given value.
|
void |
JTableHeaderDriver.clickColumn(JTableHeader tableHeader,
String columnName,
MouseButton button,
int times)
Clicks the column which name matches the given one using the given mouse button the given number of times.
|
void |
JListDriver.clickItem(JList<?> list,
int index,
MouseButton button,
int times)
Clicks the item under the given index, using the specified mouse button, the given number times.
|
void |
JTreeDriver.clickPath(JTree tree,
String path)
Clicks the given path, expanding parent nodes if necessary.
|
void |
JTreeDriver.clickPath(JTree tree,
String path,
MouseButton button)
Clicks the given path, expanding parent nodes if necessary.
|
void |
JTreeDriver.clickPath(JTree tree,
String path,
MouseClickInfo mouseClickInfo)
Clicks the given path, expanding parent nodes if necessary.
|
void |
JTreeDriver.clickRow(JTree tree,
int row)
Clicks the given row.
|
void |
JTreeDriver.clickRow(JTree tree,
int row,
MouseButton button)
Clicks the given row.
|
void |
JTreeDriver.clickRow(JTree tree,
int row,
MouseClickInfo mouseClickInfo)
Clicks the given row.
|
Object |
JComponentDriver.clientProperty(JComponent c,
Object key)
Returns the client property stored in the given
JComponent , under the given key. |
void |
JInternalFrameDriver.close(JInternalFrame internalFrame)
Closes the given
JInternalFrame . |
void |
WindowDriver.close(Window w)
Closing the
Window . |
void |
JTreeDriver.collapsePath(JTree tree,
String path)
Collapses the given path, is possible.
|
void |
JTreeDriver.collapseRow(JTree tree,
int row)
Collapses the given row, is possible.
|
int |
JTableDriver.columnIndex(JTable table,
Object columnId)
Returns the index of the column in the given
JTable whose id matches the given one. |
void |
ComponentShownWaiter.componentShown(ComponentEvent e)
Notification that the AWT or Swing
Component to wait for is finally shown on the screen. |
String[][] |
JTableDriver.contents(JTable table)
|
String[] |
JComboBoxDriver.contentsOf(JComboBox<?> comboBox)
Returns an array of
String s that represents the contents of the given JComboBox list. |
String[] |
JListDriver.contentsOf(JList<?> list)
Returns an array of
String s that represents the contents of the given JList . |
void |
JSpinnerDriver.decrement(JSpinner spinner)
Decrements the value of the
JSpinner . |
void |
JSpinnerDriver.decrement(JSpinner spinner,
int times)
Decrements the value of the
JSpinner the given number of times. |
void |
FrameDriver.deiconify(Frame frame)
Deiconifies the given AWT or Swing
Frame . |
void |
JInternalFrameDriver.deiconify(JInternalFrame internalFrame)
De-iconifies the given
JInternalFrame . |
void |
JComboBoxDriver.deleteText(JComboBox<?> comboBox)
Deletes the text of the
JComboBox . |
void |
JTextComponentDriver.deleteText(JTextComponent textBox)
Deletes the text of the
JTextComponent . |
void |
AbstractButtonDriver.deselect(AbstractButton button)
Deselects the given Swing
AbstractButton only if it is selected. |
protected void |
ContainerDriver.doResizeHeight(Container c,
int height)
Resizes the AWT or Swing
Container vertically. |
protected void |
ContainerDriver.doResizeWidth(Container c,
int width)
Resizes the AWT or Swing
Container horizontally. |
void |
ComponentDriver.doubleClick(Component c)
Simulates a user double-clicking the given AWT or Swing
Component . |
void |
JTreeDriver.doubleClickPath(JTree tree,
String path)
Double-clicks the given path.
|
void |
JTreeDriver.doubleClickRow(JTree tree,
int row)
Double-clicks the given row.
|
protected void |
ComponentDriver.drag(Component c,
Point where)
Performs a drag action at the given point.
|
void |
JListDriver.drag(JList<?> list,
int index)
Starts a drag operation at the location of the given index.
|
void |
JListDriver.drag(JList<?> list,
Pattern pattern)
Starts a drag operation at the location of the first item matching the given regular expression pattern.
|
void |
JListDriver.drag(JList<?> list,
String value)
Starts a drag operation at the location of the first item matching the given value.
|
void |
JTableDriver.drag(JTable table,
TableCell cell)
Starts a drag operation at the location of the given table cell.
|
void |
JTreeDriver.drag(JTree tree,
int row)
Starts a drag operation at the location of the given row.
|
void |
JTreeDriver.drag(JTree tree,
String path)
Starts a drag operation at the location of the given
TreePath . |
void |
ComponentDriver.drop(Component c)
Ends a drag operation at the centre of the
Component . |
protected void |
ComponentDriver.drop(Component c,
Point where)
Ends a drag operation, releasing the mouse button over the given target location.
|
void |
JListDriver.drop(JList<?> list,
int index)
Ends a drag operation at the location of the given index.
|
void |
JListDriver.drop(JList<?> list,
String value)
Ends a drag operation at the location of the first item matching the given value.
|
void |
JTableDriver.drop(JTable table,
TableCell cell)
Starts a drop operation at the location of the given table cell.
|
void |
JTreeDriver.drop(JTree tree,
int row)
Ends a drag operation at the location of the given row.
|
void |
JTreeDriver.drop(JTree tree,
String path)
Ends a drag operation at the location of the given
TreePath . |
JList<?> |
JComboBoxDriver.dropDownList()
Find the
JList in the pop-up raised by the JComboBox , if the LAF actually uses one. |
JTextComponent |
JSpinnerDriver.editor(JSpinner spinner)
Returns the
JTextComponent used as editor in the given JSpinner . |
Component |
AbstractJTableCellWriter.editorForCell(JTable table,
int row,
int column) |
void |
JComboBoxDriver.enterText(JComboBox<?> comboBox,
String text)
Simulates a user entering the specified text in the
JComboBox . |
void |
JSpinnerDriver.enterText(JSpinner spinner,
String text)
Enters the given text in the
JSpinner , assuming its editor has a JTextComponent under it. |
void |
JTextComponentDriver.enterText(JTextComponent textBox,
String text)
Types the given text into the
JTextComponent . |
void |
JSpinnerDriver.enterTextAndCommit(JSpinner spinner,
String text)
Enters and commits the given text in the
JSpinner , assuming its editor has a JTextComponent under
it. |
void |
JTableTextComponentEditorCellWriter.enterValue(JTable table,
int row,
int column,
String value) |
void |
JTableComboBoxEditorCellWriter.enterValue(JTable table,
int row,
int column,
String value) |
void |
JTableCheckBoxEditorCellWriter.enterValue(JTable table,
int row,
int column,
String value) |
void |
JTableDriver.enterValueInCell(JTable table,
TableCell cell,
String value)
Enters the given value in the given cell of the
JTable , using this driver's JTableCellWriter . |
void |
JTreeDriver.expandPath(JTree tree,
String path)
Expands the given path, is possible.
|
void |
JTreeDriver.expandRow(JTree tree,
int row)
Expands the given row, is possible.
|
JTextField |
JFileChooserDriver.fileNameTextBox(JFileChooser fileChooser)
Returns the text field where the user can enter the name of the file to select.
|
void |
JToolBarDriver.floatTo(JToolBar toolBar,
int x,
int y)
Drags the
JToolBar to the given location, causing it to float. |
void |
ComponentDriver.focus(Component c)
Gives input focus to the given AWT or Swing
Component . |
void |
ComponentDriver.focusAndWaitForFocusGain(Component c)
Gives input focus to the given AWT or Swing
Component and waits until the Component has focus. |
Font |
JTableDriver.font(JTable table,
TableCell cell)
Returns the font of the given table cell.
|
Font |
ComponentDriver.fontOf(Component c)
Returns the font of the given AWT or Swing
Component . |
Color |
JTableDriver.foreground(JTable table,
TableCell cell)
Returns the foreground colour of the given table cell.
|
Color |
ComponentDriver.foregroundOf(Component c)
Returns the foreground color of the given AWT or Swing
Component . |
Applet |
JAppletDriver.getApplet(String name)
Returns the
JApplet of the given its name in the AppletContext . |
AppletContext |
JAppletDriver.getAppletContext() |
AppletContext |
JAppletDriver.getAppletContext(JApplet applet)
Returns the
AppletContext of the given JApplet . |
Enumeration<Applet> |
JAppletDriver.getApplets() |
URL |
JAppletDriver.getCodeBase() |
URL |
JAppletDriver.getCodeBase(JApplet applet)
Returns the URL of the directory that contains the given
JApplet . |
URL |
JAppletDriver.getDocumentBase()
Returns the URL of the document the default
JApplet is embedded. |
URL |
JAppletDriver.getDocumentBase(JApplet applet)
Returns the URL of the document the given
JApplet is embedded. |
String |
JAppletDriver.getParameter(JApplet applet,
String name)
Returns the value of the named parameter in the given
JApplet in the HTML tag, or null if not set. |
String |
JAppletDriver.getParameter(String name)
Returns the value of the named parameter in the default
JApplet in the HTML tag, or null if not
set. |
JScrollBar |
JScrollPaneDriver.horizontalScrollBarIn(JScrollPane scrollPane)
Returns the horizontal
JScrollBar in the given JScrollPane . |
void |
FrameDriver.iconify(Frame frame)
Iconifies the given AWT or Swing
Frame . |
void |
JInternalFrameDriver.iconify(JInternalFrame internalFrame)
Iconifies the given
JInternalFrame . |
void |
JSpinnerDriver.increment(JSpinner spinner)
Increments the value of the
JSpinner . |
void |
JSpinnerDriver.increment(JSpinner spinner,
int times)
Increments the value of the
JSpinner the given number of times. |
int |
JListDriver.indexOf(JList<?> list,
Pattern pattern)
Returns the index of the first item matching the given regular expression pattern.
|
int |
JListDriver.indexOf(JList<?> list,
String value)
Returns the index of the first item matching the given value.
|
protected void |
JComponentDriver.invokeAction(JComponent c,
String name)
Invokes an
javax.swing.Action from the JComponent 's javax.swing.ActionMap . |
JPopupMenu |
ComponentDriver.invokePopupMenu(Component c)
Shows a pop-up menu using the given AWT or Swing
Component as the invoker of the pop-up menu. |
JPopupMenu |
ComponentDriver.invokePopupMenu(Component c,
Point p)
Shows a pop-up menu at the given point using the given AWT or Swing
Component as the invoker of the pop-up
menu. |
boolean |
JAppletDriver.isActive()
Indicates whether the default
JApplet is active or not. |
boolean |
JAppletDriver.isActive(JApplet applet)
Indicates whether the given
JApplet is active or not. |
boolean |
JToolBarDriver.isFloating(JToolBar toolBar)
Indicates whether the given
JToolBar is floating or not. |
boolean |
JMenuItemLocation.isParentAMenu()
Indicates whether the parent of the
JMenuItem is another menu. |
void |
FrameDriver.maximize(Frame frame)
Makes the AWT or Swing
Frame full size. |
void |
JInternalFrameDriver.maximize(JInternalFrame internalFrame)
Maximises the given
JInternalFrame , deconifying it first if it is iconified. |
JMenuItem |
JPopupMenuDriver.menuItem(JPopupMenu popupMenu,
String name)
Finds a
JMenuItem , contained in the Container , which name matches the specified one. |
String[] |
JPopupMenuDriver.menuLabelsOf(JPopupMenu popupMenu)
Returns the contents of the pop-up menu as a
String array. |
void |
ContainerDriver.move(Container c,
int x,
int y)
Move the given AWT or Swing
Container to the requested location. |
void |
JInternalFrameDriver.move(JInternalFrame internalFrame,
Point where)
Moves the
JInternalFrame to the given location. |
void |
JSplitPaneDriver.moveDividerTo(JSplitPane splitPane,
int location)
Sets the divider position to an absolute position.
|
protected void |
ComponentDriver.moveMouseIgnoringAnyError(Component c,
int x,
int y)
Simulates a user moving the mouse pointer to the given coordinates relative to the given AWT or Swing
Component . |
protected void |
ComponentDriver.moveMouseIgnoringAnyError(Component c,
Point p)
Simulates a user moving the mouse pointer to the given coordinates relative to the given AWT or Swing
Component . |
void |
JInternalFrameDriver.moveToBack(JInternalFrame internalFrame)
Brings the given
JInternalFrame to the back. |
void |
WindowDriver.moveToBack(Window w)
If the given
Window is visible, sends it to the back and may cause it to lose focus or activation if it is
the focused or active. |
void |
JInternalFrameDriver.moveToFront(JInternalFrame internalFrame)
Brings the given
JInternalFrame to the front. |
void |
WindowDriver.moveToFront(Window w)
If the given
Window is visible, brings it to the front and may make it the focused one. |
JButton |
JOptionPaneDriver.noButton(JOptionPane optionPane)
Finds the "No" button in the
JOptionPane . |
String |
JTreeDriver.nodeValue(JTree tree,
String path)
Returns the
String representation of the node at the given path. |
void |
FrameDriver.normalize(Frame frame)
Normalizes the given AWT or Swing
Frame . |
void |
JInternalFrameDriver.normalize(JInternalFrame internalFrame)
Normalises the given
JInternalFrame , deconifying it first if it is iconified. |
JButton |
JOptionPaneDriver.okButton(JOptionPane optionPane)
Finds the "OK" button in the
JOptionPane . |
Point |
JListDriver.pointAt(JList<?> list,
String value)
Returns the coordinates of the first item matching the given value.
|
Point |
JTableDriver.pointAt(JTable table,
TableCell cell)
Converts the given table cell into a coordinate pair.
|
void |
ComponentDriver.pressAndReleaseKey(Component c,
int keyCode,
int[] modifiers)
Simulates a user pressing and releasing the given key on the AWT or Swing
Component . |
void |
ComponentDriver.pressAndReleaseKey(Component c,
KeyPressInfo keyPressInfo)
Simulates a user pressing and releasing the given key on the AWT or Swing
Component . |
void |
ComponentDriver.pressAndReleaseKeys(Component c,
int... keyCodes)
Simulates a user pressing and releasing the given keys on the AWT or Swing
Component . |
void |
JComboBoxDriver.pressAndReleaseKeys(JComboBox<?> comboBox,
int... keyCodes)
Simulates a user pressing and releasing the given keys on the
JComboBox . |
void |
ComponentDriver.pressKey(Component c,
int keyCode)
Simulates a user pressing given key on the AWT or Swing
Component . |
void |
ComponentDriver.pressKeyWhileRunning(Component c,
int keyCode,
Runnable runnable)
Simulates a user pressing given key on the AWT or Swing
Component , running the given runnable and releasing
the key again. |
static org.assertj.core.description.Description |
ComponentDriver.propertyName(Component c,
String propertyName)
Formats the name of a property of the given AWT or Swing
Component by concatenating the value obtained from
Formatting.format(Component) with the given property name. |
void |
ComponentDriver.releaseKey(Component c,
int keyCode)
Simulates a user releasing the given key on the AWT or Swing
Component . |
void |
JComboBoxDriver.replaceText(JComboBox<?> comboBox,
String text)
Simulates a user entering the specified text in the
JComboBox , replacing any text. |
void |
JTextComponentDriver.replaceText(JTextComponent textBox,
String text)
Types the given text into the
JTextComponent , replacing any existing text already there. |
void |
AbstractButtonDriver.requireArmed(AbstractButton button)
Verifies that the Swing
AbstractButton is armed. |
void |
JTableDriver.requireCellValue(JTable table,
TableCell cell,
Pattern pattern)
Asserts that the value of the given cell matches the given regular expression pattern.
|
void |
JTableDriver.requireCellValue(JTable table,
TableCell cell,
String value)
Asserts that the value of the given cell matches the given value.
|
void |
JTableDriver.requireColumnCount(JTable table,
int columnCount)
Asserts that the given
JTable has the given number of columns. |
void |
JTableDriver.requireContents(JTable table,
String[][] contents)
Asserts that the
String representation of the cell values in the JTable is equal to the given
String array. |
void |
JProgressBarDriver.requireDeterminate(JProgressBar progressBar)
Verifies that the given
JProgressBar is in determinate mode. |
void |
ComponentDriver.requireDisabled(Component c)
Asserts that the AWT or Swing
Component is disabled. |
void |
JComboBoxDriver.requireEditable(JComboBox<?> comboBox)
Asserts that the given
JComboBox is editable. |
void |
JTableDriver.requireEditable(JTable table,
TableCell cell)
Asserts that the given table cell is editable.
|
void |
JTextComponentDriver.requireEditable(JTextComponent textBox)
Asserts that the given
JTextComponent is editable. |
void |
JTreeDriver.requireEditable(JTree tree)
Asserts that the given
JTree is editable. |
void |
JTextComponentDriver.requireEmpty(JTextComponent textBox)
Asserts that the given
JTextComponent is empty. |
void |
ComponentDriver.requireEnabled(Component c)
Asserts that the AWT or Swing
Component is enabled. |
void |
ComponentDriver.requireEnabled(Component c,
Timeout timeout)
Asserts that the AWT or Swing
Component is enabled. |
void |
JOptionPaneDriver.requireErrorMessage(JOptionPane optionPane)
Asserts that the
JOptionPane is displaying an error message. |
void |
ComponentDriver.requireFocused(Component c)
Asserts that the AWT or Swing
Component has input focus. |
void |
JProgressBarDriver.requireIndeterminate(JProgressBar progressBar)
Verifies that the given
JProgressBar is in indeterminate mode. |
void |
JOptionPaneDriver.requireInformationMessage(JOptionPane optionPane)
Asserts that the
JOptionPane is displaying an information message. |
void |
JComboBoxDriver.requireItemCount(JComboBox<?> comboBox,
int expected)
Verifies that number of items in the given
JComboBox is equal to the expected one. |
void |
JListDriver.requireItemCount(JList<?> list,
int expected)
Verifies that number of items in the given
JList is equal to the expected one. |
void |
JOptionPaneDriver.requireMessage(JOptionPane optionPane,
Object message)
Asserts that the title of the
JOptionPane matches the given value. |
void |
JOptionPaneDriver.requireMessage(JOptionPane optionPane,
Pattern pattern)
Asserts that the title of the
JOptionPane matches the given regular expression pattern. |
void |
DialogDriver.requireModal(Dialog dialog)
Asserts that the given AWT or Swing
Dialog is modal. |
void |
JComboBoxDriver.requireNoSelection(JComboBox<?> comboBox)
Verifies that the
JComboBox does not have any selection. |
void |
JListDriver.requireNoSelection(JList<?> list)
Verifies that the
JList does not have a selection. |
void |
JTableDriver.requireNoSelection(JTable table)
Verifies that the
JTable does not have any selection. |
void |
JTreeDriver.requireNoSelection(JTree tree)
Asserts that the given
JTree does not have any selection. |
void |
AbstractButtonDriver.requireNotArmed(AbstractButton button)
Verifies that the
AbstractButton is not armed. |
void |
JComboBoxDriver.requireNotEditable(JComboBox<?> comboBox)
Asserts that the given
JComboBox is not editable. |
void |
JTableDriver.requireNotEditable(JTable table,
TableCell cell)
Asserts that the given table cell is not editable.
|
void |
JTextComponentDriver.requireNotEditable(JTextComponent textBox)
Asserts that the given
JTextComponent is not editable. |
void |
JTreeDriver.requireNotEditable(JTree tree)
Asserts that the given
JTree is not editable. |
void |
AbstractButtonDriver.requireNotSelected(AbstractButton button)
Verifies that the
AbstractButton is not selected. |
void |
ComponentDriver.requireNotVisible(Component c)
Asserts that the AWT or Swing
Component is not visible. |
void |
JOptionPaneDriver.requireOptions(JOptionPane optionPane,
Object[] options)
Asserts that the
JOptionPane has the given options. |
void |
JOptionPaneDriver.requirePlainMessage(JOptionPane optionPane)
Asserts that the
JOptionPane is displaying a plain message. |
void |
JOptionPaneDriver.requireQuestionMessage(JOptionPane optionPane)
Asserts that the
JOptionPane is displaying a question. |
void |
JTableDriver.requireRowCount(JTable table,
int rowCount)
Asserts that the given
JTable has the given number of rows. |
void |
AbstractButtonDriver.requireSelected(AbstractButton button)
Verifies that the Swing
AbstractButton is selected. |
void |
JListDriver.requireSelectedItems(JList<?> list,
int... indices)
Verifies that the given item indices are selected in the
JList . |
void |
JListDriver.requireSelectedItems(JList<?> list,
Pattern... patterns)
Verifies that the selected items in the
JList match the given regular expression patterns. |
void |
JListDriver.requireSelectedItems(JList<?> list,
String... items)
Verifies that the selected items in the
JList match the given values. |
void |
JTableDriver.requireSelectedRows(JTable table,
int... rows)
Asserts that the set of selected rows in the given
JTable contains to the given row indices. |
void |
JTabbedPaneDriver.requireSelectedTab(JTabbedPane tabbedPane,
Index index)
Asserts that the tab at the given index is the selected tab.
|
void |
JComboBoxDriver.requireSelection(JComboBox<?> comboBox,
int index)
Verifies that the index of the selected item in the
JComboBox is equal to the given value. |
void |
JComboBoxDriver.requireSelection(JComboBox<?> comboBox,
Pattern pattern)
Verifies that the
String representation of the selected item in the JComboBox matches the given
regular expression pattern. |
void |
JComboBoxDriver.requireSelection(JComboBox<?> comboBox,
String value)
Verifies that the
String representation of the selected item in the JComboBox matches the given
text. |
void |
JListDriver.requireSelection(JList<?> list,
int index)
Verifies that the selected index in the
JList matches the given value. |
void |
JListDriver.requireSelection(JList<?> list,
Pattern pattern)
Verifies that the selected item in the
JList matches the given regular expression pattern. |
void |
JListDriver.requireSelection(JList<?> list,
String value)
Verifies that the selected item in the
JList matches the given value. |
void |
JTreeDriver.requireSelection(JTree tree,
int[] rows)
Asserts that the given
JTree 's selected rows are equal to the given one. |
void |
JTreeDriver.requireSelection(JTree tree,
String[] paths)
Asserts that the given
JTree 's selected paths are equal to the given one. |
void |
ComponentDriver.requireSize(Component c,
Dimension size)
Asserts that the size of the AWT or Swing
Component is equal to given one. |
void |
JTabbedPaneDriver.requireTabDisabled(JTabbedPane tabbedPane,
Index index)
Asserts that the tab at the given index is disabled.
|
void |
JTabbedPaneDriver.requireTabEnabled(JTabbedPane tabbedPane,
Index index)
Asserts that the tab at the given index is enabled.
|
void |
JTabbedPaneDriver.requireTabTitle(JTabbedPane tabbedPane,
Pattern pattern,
Index index)
Asserts that the title of the tab at the given index matches the given regular expression pattern.
|
void |
JTabbedPaneDriver.requireTabTitle(JTabbedPane tabbedPane,
String title,
Index index)
Asserts that the title of the tab at the given index matches the given value.
|
void |
JTabbedPaneDriver.requireTabTitles(JTabbedPane tabbedPane,
String[] titles)
Asserts that the tabs of the given
JTabbedPane have the given titles. |
void |
JTabbedPaneDriver.requireTabToolTipText(JTabbedPane tabbedPane,
Pattern pattern,
Index index)
Asserts that the toolTipText of the tab at the given index matches the given regular expression pattern.
|
void |
JTabbedPaneDriver.requireTabToolTipText(JTabbedPane tabbedPane,
String toolTipText,
Index index)
Asserts that the toolTipText of the tab at the given index matches the given value.
|
void |
AbstractButtonDriver.requireText(AbstractButton button,
String expected)
Asserts that the text in the given Swing
AbstractButton is equal to or matches the specified String
. |
void |
JLabelDriver.requireText(JLabel label,
Pattern pattern)
Asserts that the text of the
JLabel matches the given regular expression pattern. |
void |
JLabelDriver.requireText(JLabel label,
String expected)
Asserts that the text of the
JLabel is equal to the specified String . |
void |
JProgressBarDriver.requireText(JProgressBar progressBar,
Pattern pattern)
Asserts that the text of the
JProgressBar matches the given regular expression pattern. |
void |
JProgressBarDriver.requireText(JProgressBar progressBar,
String expected)
Asserts that the text of the
JProgressBar is equal to the specified String . |
void |
JTextComponentDriver.requireText(JTextComponent textBox,
Pattern pattern)
Asserts that the text in the given
JTextComponent matches the given regular expression pattern. |
void |
JTextComponentDriver.requireText(JTextComponent textBox,
String expected)
Asserts that the text in the given
JTextComponent is equal to the specified value. |
void |
FrameDriver.requireTitle(Frame frame,
String expected)
Verifies that the title of the given
Frame is equal to the expected one. |
void |
JInternalFrameDriver.requireTitle(JInternalFrame frame,
String expected)
Verifies that the title of the given
JInternalFrame is equal to the expected one. |
void |
JOptionPaneDriver.requireTitle(JOptionPane optionPane,
Pattern pattern)
Asserts that the title in the given
JOptionPane matches the given regular expression pattern. |
void |
JOptionPaneDriver.requireTitle(JOptionPane optionPane,
String title)
Asserts that the title in the given
JOptionPane matches the given value. |
void |
JComponentDriver.requireToolTip(JComponent c,
Pattern pattern)
Asserts that the toolTip in the given
JComponent matches the given regular expression pattern. |
void |
JComponentDriver.requireToolTip(JComponent c,
String expected)
Asserts that the toolTip in the given
JComponent matches the given value. |
void |
JProgressBarDriver.requireValue(JProgressBar progressBar,
int value)
Verifies that the value of the given
JProgressBar is equal to the given one. |
void |
JScrollBarDriver.requireValue(JScrollBar scrollBar,
int value)
Asserts that the value of the
JScrollBar is equal to the given one. |
void |
JSpinnerDriver.requireValue(JSpinner spinner,
Object value)
Verifies that the value of the
JSpinner is equal to the given one. |
void |
ComponentDriver.requireVisible(Component c)
Asserts that the AWT or Swing
Component is visible. |
void |
JOptionPaneDriver.requireWarningMessage(JOptionPane optionPane)
Asserts that the
JOptionPane is displaying a warning message. |
protected void |
ContainerDriver.resize(Container c,
int width,
int height)
Resizes the AWT or Swing
Container to the given size. |
void |
JInternalFrameDriver.resizeHeight(JInternalFrame w,
int height)
Resizes the
JInternalFrame vertically. |
void |
WindowDriver.resizeHeightTo(Window w,
int height)
Resizes the
Window vertically. |
void |
JInternalFrameDriver.resizeTo(JInternalFrame internalFrame,
Dimension size)
Resizes the
JInternalFrame to the given size. |
void |
WindowDriver.resizeTo(Window w,
Dimension size)
Resizes the
Window to the given size. |
void |
JInternalFrameDriver.resizeWidth(JInternalFrame internalFrame,
int width)
Resizes the
JInternalFrame horizontally. |
void |
WindowDriver.resizeWidthTo(Window w,
int width)
Resizes the
Window horizontally. |
void |
ComponentDriver.rightClick(Component c)
Simulates a user right-clicking the given AWT or Swing
Component . |
void |
JTreeDriver.rightClickPath(JTree tree,
String path)
Right-clicks the given path, expanding parent nodes if necessary.
|
void |
JTreeDriver.rightClickRow(JTree tree,
int row)
Right-clicks the given row.
|
int |
JTableDriver.rowCountOf(JTable table)
Returns the number of rows that can be shown in the given
JTable , given unlimited space. |
void |
JScrollBarDriver.scrollBlockDown(JScrollBar scrollBar)
Scrolls down (or right) one block (usually a page).
|
void |
JScrollBarDriver.scrollBlockDown(JScrollBar scrollBar,
int times)
Scrolls down (or right) one block (usually a page), the given number of times.
|
void |
JScrollBarDriver.scrollBlockUp(JScrollBar scrollBar)
Scrolls up (or left) one block (usually a page).
|
void |
JScrollBarDriver.scrollBlockUp(JScrollBar scrollBar,
int times)
Scrolls up (or left) one block (usually a page), the given number of times.
|
void |
JScrollBarDriver.scrollTo(JScrollBar scrollBar,
int position)
Scrolls to the given position.
|
void |
JScrollBarDriver.scrollToMaximum(JScrollBar scrollBar)
Scrolls to the maximum position of the given
JScrollBar . |
void |
JScrollBarDriver.scrollToMinimum(JScrollBar scrollBar)
Scrolls to the minimum position of the given
JScrollBar . |
void |
AbstractButtonDriver.select(AbstractButton button)
Selects the given Swing
AbstractButton only it is not already selected. |
void |
JTextComponentDriver.selectAll(JTextComponent textBox)
Selects the text in the
JTextComponent . |
void |
JComboBoxDriver.selectAllText(JComboBox<?> comboBox)
Simulates a user selecting the text in the
JComboBox . |
void |
JTableDriver.selectCell(JTable table,
TableCell cell)
Selects the given cell, if it is not selected already.
|
Component |
JTabbedPaneDriver.selectedComponentOf(JTabbedPane tabbedPane)
Returns the currently selected component for the given
JTabbedPane . |
void |
JFileChooserDriver.selectFile(JFileChooser fileChooser,
File file)
Selects the given file in the
JFileChooser . |
String[] |
JListDriver.selectionOf(JList<?> list)
Returns an array of
String s that represents the selection in the given JList , using this driver's
JListCellReader . |
String |
JTableDriver.selectionValue(JTable table)
Returns the
String representation of the value of the selected cell, using this driver's
JTableCellReader . |
void |
JComboBoxDriver.selectItem(JComboBox<?> comboBox,
int index)
Selects the item under the given index in the
JComboBox . |
void |
JComboBoxDriver.selectItem(JComboBox<?> comboBox,
Pattern pattern)
Selects the first item matching the given regular expression pattern in the
JComboBox . |
void |
JComboBoxDriver.selectItem(JComboBox<?> comboBox,
String value)
Selects the first item matching the given text in the
JComboBox . |
void |
JListDriver.selectItem(JList<?> list,
int index)
Selects the item under the given index using left mouse button once.
|
void |
JListDriver.selectItem(JList<?> list,
Pattern pattern)
Selects the item in the given
JList whose value matches the given regular expression pattern. |
void |
JListDriver.selectItem(JList<?> list,
String value)
Selects the item in the given
JList whose value matches the given one. |
void |
JListDriver.selectItems(JList<?> list,
int start,
int end)
Selects the items in the specified range.
|
void |
JListDriver.selectItems(JList<?> list,
Pattern[] patterns)
Selects the items matching the given regular expression patterns.
|
void |
JListDriver.selectItems(JList<?> list,
Range.From from,
Range.To to)
Selects the items in the specified range.
|
void |
JListDriver.selectItems(JList<?> list,
String[] values)
Selects the items matching the given values.
|
void |
JTreeDriver.selectPath(JTree tree,
String path)
Selects the given path, expanding parent nodes if necessary.
|
void |
JTreeDriver.selectPaths(JTree tree,
String[] paths)
Selects the given paths, expanding parent nodes if necessary.
|
void |
JTreeDriver.selectRow(JTree tree,
int row)
Selects the given row.
|
void |
JTableDriver.selectRows(JTable table,
int... rows)
Simulates a user selecting the given rows in the given
JTable . |
void |
JTreeDriver.selectRows(JTree tree,
int[] rows)
Selects the given rows.
|
void |
JTabbedPaneDriver.selectTab(JTabbedPane tabbedPane,
int index)
Simulates a user selecting the tab located at the given index.
|
void |
JTabbedPaneDriver.selectTab(JTabbedPane tabbedPane,
Pattern pattern)
Simulates a user selecting the tab whose title matches the given regular expression pattern.
|
void |
JTabbedPaneDriver.selectTab(JTabbedPane tabbedPane,
String title)
Simulates a user selecting the tab containing the given title.
|
void |
JTextComponentDriver.selectText(JTextComponent textBox,
int start,
int end)
Select the given text range.
|
void |
JTextComponentDriver.selectText(JTextComponent textBox,
String text)
Select the given text range.
|
void |
JSpinnerDriver.selectValue(JSpinner spinner,
Object value)
Selects the given value in the given
JSpinner . |
void |
JFileChooserDriver.setCurrentDirectory(JFileChooser fileChooser,
File dir)
Sets the current directory in the
JFileChooser to the given one. |
void |
JTextComponentDriver.setText(JTextComponent textBox,
String text)
Sets the given text into the
JTextComponent . |
void |
WindowDriver.show(Window w)
Shows the
Window . |
void |
WindowDriver.show(Window w,
Dimension size)
Shows the
Window , resized to the given size. |
JPopupMenu |
JListDriver.showPopupMenu(JList<?> list,
int index)
Shows a pop-up menu at the location of the specified item in the
JList . |
JPopupMenu |
JListDriver.showPopupMenu(JList<?> list,
Pattern pattern)
Shows a pop-up menu at the location of the specified item in the
JList . |
JPopupMenu |
JListDriver.showPopupMenu(JList<?> list,
String value)
Shows a pop-up menu at the location of the specified item in the
JList . |
JPopupMenu |
JTableHeaderDriver.showPopupMenu(JTableHeader tableHeader,
int columnIndex)
Shows a pop-up menu at the given column.
|
JPopupMenu |
JTableHeaderDriver.showPopupMenu(JTableHeader tableHeader,
Pattern pattern)
Shows a pop-up menu at the column whose name matches the given regular expression pattern.
|
JPopupMenu |
JTableHeaderDriver.showPopupMenu(JTableHeader tableHeader,
String columnName)
Shows a pop-up menu at the given column.
|
JPopupMenu |
JTreeDriver.showPopupMenu(JTree tree,
int row)
Shows a pop-up menu at the position of the node in the given row.
|
JPopupMenu |
JTreeDriver.showPopupMenu(JTree tree,
String path)
Shows a pop-up menu at the position of the last node in the given path.
|
JPopupMenu |
JTableDriver.showPopupMenuAt(JTable table,
TableCell cell)
Shows a pop-up menu at the given table cell.
|
void |
JSliderDriver.slide(JSlider slider,
int value)
Slides the knob to the requested value.
|
void |
JSliderDriver.slideToMaximum(JSlider slider)
Slides the knob to its maximum.
|
void |
JSliderDriver.slideToMinimum(JSlider slider)
Slides the knob to its minimum.
|
void |
JTableTextComponentEditorCellWriter.startCellEditing(JTable table,
int row,
int column) |
void |
JTableComboBoxEditorCellWriter.startCellEditing(JTable table,
int row,
int column) |
void |
JTableCheckBoxEditorCellWriter.startCellEditing(JTable table,
int row,
int column) |
void |
JTableDriver.startCellEditing(JTable table,
TableCell cell)
Starts editing the given cell of the
JTable , using this driver's JTableCellWriter . |
void |
AbstractJTableCellWriter.stopCellEditing(JTable table,
int row,
int column) |
void |
JTableDriver.stopCellEditing(JTable table,
TableCell cell)
Stops editing the given cell of the
JTable , using this driver's JTableCellWriter . |
JTableHeader |
JTableDriver.tableHeaderOf(JTable table)
Returns the
JTableHeader of the given JTable . |
String[] |
JTabbedPaneDriver.tabTitles(JTabbedPane tabbedPane)
Returns the titles of all the tabs.
|
String |
AbstractButtonDriver.textOf(AbstractButton button)
Returns the text of the given Swing
AbstractButton . |
String |
JLabelDriver.textOf(JLabel label)
Returns the text of the given
JLabel . |
String |
JProgressBarDriver.textOf(JProgressBar progressBar)
Returns the text of the given
JProgressBar . |
String |
JSpinnerDriver.textOf(JSpinner spinner)
Returns the text displayed in the given
JSpinner . |
String |
JTextComponentDriver.textOf(JTextComponent textBox)
Returns the text of the given
JTextComponent . |
String |
JOptionPaneDriver.title(JOptionPane optionPane)
Returns the title of the given
JOptionPane . |
void |
JTreeDriver.toggleRow(JTree tree,
int row)
Change the open/closed state of the given row, if possible.
|
void |
JToolBarDriver.unfloat(JToolBar toolBar)
Closes a floating
JToolBar , making it go back to its original container in its last known location. |
void |
JToolBarDriver.unfloat(JToolBar toolBar,
String constraint)
Drop the
JToolBar to the requested constraint position. |
void |
JTableDriver.unselectCell(JTable table,
TableCell cell)
Unselects the given cell, if it is selected.
|
void |
JListDriver.unselectItem(JList<?> list,
int index)
Unselects the item under the given index using left mouse button once.
|
void |
JTreeDriver.unselectPath(JTree tree,
String path)
Unselects the given path, expanding parent nodes if necessary.
|
void |
JTreeDriver.unselectPaths(JTree tree,
String[] paths)
Unselects the given paths, expanding parent nodes if necessary.
|
void |
JTreeDriver.unselectRow(JTree tree,
int row)
Unselects the given row.
|
void |
JTableDriver.unselectRows(JTable table,
int... rows)
Simulates a user unselecting the given rows in the given
JTable . |
void |
JTreeDriver.unselectRows(JTree tree,
int[] rows)
Unselects the given rows.
|
String |
JListDriver.value(JList<?> list,
int index)
Returns the
String representation of the element under the given index, using this driver's
JListCellReader . |
String |
JTableDriver.value(JTable table,
int row,
int column)
Returns the
String representation of the value at the given row and column, using this driver's
JTableCellReader . |
String |
JTableDriver.value(JTable table,
TableCell cell)
Returns the
String representation of the value at the given cell, using this driver's
JTableCellReader . |
JScrollBar |
JScrollPaneDriver.verticalScrollBarIn(JScrollPane scrollPane)
Returns the vertical
JScrollBar in the given JScrollPane . |
protected <T extends Component> |
AbstractJTableCellWriter.waitForEditorActivation(ComponentMatcher matcher,
JTable table,
int row,
int column,
Class<T> supportedType)
Waits until the editor of the given table cell is showing on the screen.
|
protected <T extends Component> |
AbstractJTableCellWriter.waitForEditorActivation(JTable table,
int row,
int column,
Class<T> supportedType)
Waits until the editor of the given table cell is showing on the screen.
|
void |
JProgressBarDriver.waitUntilIsDeterminate(JProgressBar progressBar)
Waits until the value of the given
JProgressBar is in determinate mode. |
void |
JProgressBarDriver.waitUntilIsDeterminate(JProgressBar progressBar,
Timeout timeout)
Waits until the value of the given
JProgressBar is in determinate mode. |
void |
JProgressBarDriver.waitUntilValueIs(JProgressBar progressBar,
int value)
Waits until the value of the given
JProgressBar is equal to the given value. |
void |
JProgressBarDriver.waitUntilValueIs(JProgressBar progressBar,
int value,
Timeout timeout)
Waits until the value of the given
JProgressBar is equal to the given value. |
JButton |
JOptionPaneDriver.yesButton(JOptionPane optionPane)
Finds the "Yes" button in the
JOptionPane . |
Modifier and Type | Method and Description |
---|---|
JButtonFixture |
AbstractContainerFixture.button() |
JButtonFixture |
ComponentContainerFixture.button()
Returns a
JButton found in this fixture's Container . |
JButtonFixture |
AbstractContainerFixture.button(GenericTypeMatcher<? extends JButton> matcher) |
JButtonFixture |
ComponentContainerFixture.button(GenericTypeMatcher<? extends JButton> matcher)
Finds a
JButton in this fixture's Container , that matches the specified search criteria. |
JButtonFixture |
AbstractContainerFixture.button(String name) |
JButtonFixture |
ComponentContainerFixture.button(String name)
Finds a
JButton in this fixture's Container , which name matches the specified one. |
JCheckBoxFixture |
AbstractContainerFixture.checkBox() |
JCheckBoxFixture |
ComponentContainerFixture.checkBox()
Returns a
JCheckBox found in this fixture's Container . |
JCheckBoxFixture |
AbstractContainerFixture.checkBox(GenericTypeMatcher<? extends JCheckBox> matcher) |
JCheckBoxFixture |
ComponentContainerFixture.checkBox(GenericTypeMatcher<? extends JCheckBox> matcher)
Finds a
JCheckBox in this fixture's Container , that matches the specified search criteria. |
JCheckBoxFixture |
AbstractContainerFixture.checkBox(String name) |
JCheckBoxFixture |
ComponentContainerFixture.checkBox(String name)
Finds a
JCheckBox in this fixture's Container , which name matches the specified one. |
JComboBoxFixture |
AbstractContainerFixture.comboBox() |
JComboBoxFixture |
ComponentContainerFixture.comboBox()
Returns a
JComboBox found in this fixture's Container . |
JComboBoxFixture |
AbstractContainerFixture.comboBox(GenericTypeMatcher<? extends JComboBox> matcher) |
JComboBoxFixture |
ComponentContainerFixture.comboBox(GenericTypeMatcher<? extends JComboBox> matcher)
Finds a
JComboBox in this fixture's Container , that matches the specified search criteria. |
JComboBoxFixture |
AbstractContainerFixture.comboBox(String name) |
JComboBoxFixture |
ComponentContainerFixture.comboBox(String name)
Finds a
JComboBox in this fixture's Container , which name matches the specified one. |
DialogFixture |
AbstractContainerFixture.dialog() |
DialogFixture |
ComponentContainerFixture.dialog()
Returns the only
Dialog currently available (if any). |
DialogFixture |
AbstractContainerFixture.dialog(GenericTypeMatcher<? extends Dialog> matcher) |
DialogFixture |
ComponentContainerFixture.dialog(GenericTypeMatcher<? extends Dialog> matcher)
Finds a
Dialog that matches the specified search criteria. |
DialogFixture |
AbstractContainerFixture.dialog(GenericTypeMatcher<? extends Dialog> matcher,
Timeout timeout) |
DialogFixture |
ComponentContainerFixture.dialog(GenericTypeMatcher<? extends Dialog> matcher,
Timeout timeout)
Finds a
Dialog that matches the specified search criteria. |
DialogFixture |
AbstractContainerFixture.dialog(String name) |
DialogFixture |
ComponentContainerFixture.dialog(String name)
Finds a
Dialog with a name matching the specified one. |
DialogFixture |
AbstractContainerFixture.dialog(String name,
Timeout timeout) |
DialogFixture |
ComponentContainerFixture.dialog(String name,
Timeout timeout)
Finds a
Dialog with a name matching the specified one. |
DialogFixture |
AbstractContainerFixture.dialog(Timeout timeout) |
DialogFixture |
ComponentContainerFixture.dialog(Timeout timeout)
Returns the only
Dialog currently available (if any). |
JFileChooserFixture |
AbstractContainerFixture.fileChooser() |
JFileChooserFixture |
ComponentContainerFixture.fileChooser()
Returns the only
JFileChooser currently available (if any). |
JFileChooserFixture |
AbstractContainerFixture.fileChooser(GenericTypeMatcher<? extends JFileChooser> matcher) |
JFileChooserFixture |
ComponentContainerFixture.fileChooser(GenericTypeMatcher<? extends JFileChooser> matcher)
Finds a
JFileChooser that matches the specified search criteria. |
JFileChooserFixture |
AbstractContainerFixture.fileChooser(GenericTypeMatcher<? extends JFileChooser> matcher,
Timeout timeout) |
JFileChooserFixture |
ComponentContainerFixture.fileChooser(GenericTypeMatcher<? extends JFileChooser> matcher,
Timeout timeout)
Finds a
JFileChooser that matches the specified search criteria. |
JFileChooserFixture |
AbstractContainerFixture.fileChooser(String name) |
JFileChooserFixture |
ComponentContainerFixture.fileChooser(String name)
Finds a
JFileChooser with a name matching the specified one. |
JFileChooserFixture |
AbstractContainerFixture.fileChooser(String name,
Timeout timeout) |
JFileChooserFixture |
ComponentContainerFixture.fileChooser(String name,
Timeout timeout)
Finds a
JFileChooser with a name matching the specified one. |
JFileChooserFixture |
AbstractContainerFixture.fileChooser(Timeout timeout) |
JFileChooserFixture |
ComponentContainerFixture.fileChooser(Timeout timeout)
Returns the only
JFileChooser currently available (if any). |
static FrameFixture |
Containers.frameFixtureFor(Container contentPane)
Creates a new
JFrame and uses the given Container as its content pane. |
static FrameFixture |
Containers.frameFixtureFor(Robot robot,
Container contentPane)
Creates a new
JFrame and uses the given Container as its content pane. |
static JFrame |
Containers.frameFor(Container contentPane)
Creates a new
JFrame and uses the given Container as its content pane. |
JInternalFrameFixture |
AbstractContainerFixture.internalFrame() |
JInternalFrameFixture |
ComponentContainerFixture.internalFrame()
Returns a
JInternalFrame found in this fixture's Container . |
JInternalFrameFixture |
AbstractContainerFixture.internalFrame(GenericTypeMatcher<? extends JInternalFrame> matcher) |
JInternalFrameFixture |
ComponentContainerFixture.internalFrame(GenericTypeMatcher<? extends JInternalFrame> matcher)
Finds a
JInternalFrame in this fixture's Container , that matches the specified search criteria. |
JInternalFrameFixture |
AbstractContainerFixture.internalFrame(String name) |
JInternalFrameFixture |
ComponentContainerFixture.internalFrame(String name)
Finds a
JInternalFrame in this fixture's Container whose name matches the specified one. |
JLabelFixture |
AbstractContainerFixture.label() |
JLabelFixture |
ComponentContainerFixture.label()
Returns a
JLabel found in this fixture's Container . |
JLabelFixture |
AbstractContainerFixture.label(GenericTypeMatcher<? extends JLabel> matcher) |
JLabelFixture |
ComponentContainerFixture.label(GenericTypeMatcher<? extends JLabel> matcher)
Finds a
JLabel in this fixture's Container , that matches the specified search criteria. |
JLabelFixture |
AbstractContainerFixture.label(String name) |
JLabelFixture |
ComponentContainerFixture.label(String name)
Finds a
JLabel in this fixture's Container , which name matches the specified one. |
JListFixture |
AbstractContainerFixture.list() |
JListFixture |
ComponentContainerFixture.list()
Returns a
JList found in this fixture's Container . |
JListFixture |
AbstractContainerFixture.list(GenericTypeMatcher<? extends JList> matcher) |
JListFixture |
ComponentContainerFixture.list(GenericTypeMatcher<? extends JList> matcher)
Finds a
JList in this fixture's Container , that matches the specified search criteria. |
JListFixture |
AbstractContainerFixture.list(String name) |
JListFixture |
ComponentContainerFixture.list(String name)
Finds a
JList in this fixture's Container , which name matches the specified one. |
JMenuItemFixture |
AbstractContainerFixture.menuItem(GenericTypeMatcher<? extends JMenuItem> matcher) |
JMenuItemFixture |
ComponentContainerFixture.menuItem(GenericTypeMatcher<? extends JMenuItem> matcher)
Finds a
JMenuItem , contained in this fixture's Container , that matches the specified search
criteria. |
JMenuItemFixture |
AbstractContainerFixture.menuItem(String name) |
JMenuItemFixture |
ComponentContainerFixture.menuItem(String name)
Finds a
JMenuItem , contained in this fixture's Container , which name matches the specified one. |
JMenuItemFixture |
AbstractContainerFixture.menuItemWithPath(String... path) |
JMenuItemFixture |
ComponentContainerFixture.menuItemWithPath(String... path)
Finds a
JMenuItem in this fixture's Container , which path matches the given one. |
JOptionPaneFixture |
AbstractContainerFixture.optionPane() |
JOptionPaneFixture |
ComponentContainerFixture.optionPane()
Returns the only
JOptionPane currently available (if any). |
JOptionPaneFixture |
AbstractContainerFixture.optionPane(Timeout timeout) |
JOptionPaneFixture |
ComponentContainerFixture.optionPane(Timeout timeout)
Returns the only
JOptionPane currently available (if any). |
JPanelFixture |
AbstractContainerFixture.panel() |
JPanelFixture |
ComponentContainerFixture.panel()
Returns a
JPanel found in this fixture's Container . |
JPanelFixture |
AbstractContainerFixture.panel(GenericTypeMatcher<? extends JPanel> matcher) |
JPanelFixture |
ComponentContainerFixture.panel(GenericTypeMatcher<? extends JPanel> matcher)
Finds a
JPanel in this fixture's Container , that matches the specified search criteria. |
JPanelFixture |
AbstractContainerFixture.panel(String name) |
JPanelFixture |
ComponentContainerFixture.panel(String name)
Finds a
JPanel in this fixture's Container , which name matches the specified one. |
JProgressBarFixture |
AbstractContainerFixture.progressBar() |
JProgressBarFixture |
ComponentContainerFixture.progressBar()
Returns a
JProgressBar found in this fixture's Container . |
JProgressBarFixture |
AbstractContainerFixture.progressBar(GenericTypeMatcher<? extends JProgressBar> matcher) |
JProgressBarFixture |
ComponentContainerFixture.progressBar(GenericTypeMatcher<? extends JProgressBar> matcher)
Finds a
JProgressBar in this fixture's Container , that matches the specified search criteria. |
JProgressBarFixture |
AbstractContainerFixture.progressBar(String name) |
JProgressBarFixture |
ComponentContainerFixture.progressBar(String name)
Finds a
JProgressBar in this fixture's Container , which name matches the specified one. |
JRadioButtonFixture |
AbstractContainerFixture.radioButton() |
JRadioButtonFixture |
ComponentContainerFixture.radioButton()
Returns a
JRadioButton found in this fixture's Container . |
JRadioButtonFixture |
AbstractContainerFixture.radioButton(GenericTypeMatcher<? extends JRadioButton> matcher) |
JRadioButtonFixture |
ComponentContainerFixture.radioButton(GenericTypeMatcher<? extends JRadioButton> matcher)
Finds a
JRadioButton in this fixture's Container , that matches the specified search criteria. |
JRadioButtonFixture |
AbstractContainerFixture.radioButton(String name) |
JRadioButtonFixture |
ComponentContainerFixture.radioButton(String name)
Finds a
JRadioButton in this fixture's Container , which name matches the specified one. |
JScrollBarFixture |
AbstractContainerFixture.scrollBar() |
JScrollBarFixture |
ComponentContainerFixture.scrollBar()
Returns a
JScrollBar found in this fixture's Container . |
JScrollBarFixture |
AbstractContainerFixture.scrollBar(GenericTypeMatcher<? extends JScrollBar> matcher) |
JScrollBarFixture |
ComponentContainerFixture.scrollBar(GenericTypeMatcher<? extends JScrollBar> matcher)
Finds a
JScrollBar in this fixture's Container , that matches the specified search criteria. |
JScrollBarFixture |
AbstractContainerFixture.scrollBar(String name) |
JScrollBarFixture |
ComponentContainerFixture.scrollBar(String name)
Finds a
JScrollBar in this fixture's Container , which name matches the specified one. |
JScrollPaneFixture |
AbstractContainerFixture.scrollPane() |
JScrollPaneFixture |
ComponentContainerFixture.scrollPane()
Returns a
JScrollPane found in this fixture's Container . |
JScrollPaneFixture |
AbstractContainerFixture.scrollPane(GenericTypeMatcher<? extends JScrollPane> matcher) |
JScrollPaneFixture |
ComponentContainerFixture.scrollPane(GenericTypeMatcher<? extends JScrollPane> matcher)
Finds a
JScrollPane in this fixture's Container , that matches the specified search criteria. |
JScrollPaneFixture |
AbstractContainerFixture.scrollPane(String name) |
JScrollPaneFixture |
ComponentContainerFixture.scrollPane(String name)
Finds a
JScrollPane in this fixture's Container , which name matches the specified one. |
static FrameFixture |
Containers.showInFrame(Container contentPane)
Creates a new
JFrame and uses the given Container as its content pane. |
static FrameFixture |
Containers.showInFrame(Robot robot,
Container contentPane)
Creates a new
JFrame and uses the given Container as its content pane. |
JSliderFixture |
AbstractContainerFixture.slider() |
JSliderFixture |
ComponentContainerFixture.slider()
Returns a
JSlider found in this fixture's Container . |
JSliderFixture |
AbstractContainerFixture.slider(GenericTypeMatcher<? extends JSlider> matcher) |
JSliderFixture |
ComponentContainerFixture.slider(GenericTypeMatcher<? extends JSlider> matcher)
Finds a
JSlider in this fixture's Container , that matches the specified search criteria. |
JSliderFixture |
AbstractContainerFixture.slider(String name) |
JSliderFixture |
ComponentContainerFixture.slider(String name)
Finds a
JSlider in this fixture's Container , which name matches the specified one. |
JSpinnerFixture |
AbstractContainerFixture.spinner() |
JSpinnerFixture |
ComponentContainerFixture.spinner()
Returns a
JSpinner found in this fixture's Container . |
JSpinnerFixture |
AbstractContainerFixture.spinner(GenericTypeMatcher<? extends JSpinner> matcher) |
JSpinnerFixture |
ComponentContainerFixture.spinner(GenericTypeMatcher<? extends JSpinner> matcher)
Finds a
JSpinner in this fixture's Container , that matches the specified search criteria. |
JSpinnerFixture |
AbstractContainerFixture.spinner(String name) |
JSpinnerFixture |
ComponentContainerFixture.spinner(String name)
Finds a
JSpinner in this fixture's Container , which name matches the specified one. |
JSplitPaneFixture |
AbstractContainerFixture.splitPane() |
JSplitPaneFixture |
ComponentContainerFixture.splitPane()
Returns the
JSplitPane found in this fixture's Container . |
JSplitPaneFixture |
AbstractContainerFixture.splitPane(GenericTypeMatcher<? extends JSplitPane> matcher) |
JSplitPaneFixture |
ComponentContainerFixture.splitPane(GenericTypeMatcher<? extends JSplitPane> matcher)
Finds a
JSplitPane in this fixture's Container , that matches the specified search criteria. |
JSplitPaneFixture |
AbstractContainerFixture.splitPane(String name) |
JSplitPaneFixture |
ComponentContainerFixture.splitPane(String name)
Finds a
JSplitPane in this fixture's Container , which name matches the specified one. |
JTabbedPaneFixture |
AbstractContainerFixture.tabbedPane() |
JTabbedPaneFixture |
ComponentContainerFixture.tabbedPane()
Returns a
JTabbedPane found in this fixture's Container . |
JTabbedPaneFixture |
AbstractContainerFixture.tabbedPane(GenericTypeMatcher<? extends JTabbedPane> matcher) |
JTabbedPaneFixture |
ComponentContainerFixture.tabbedPane(GenericTypeMatcher<? extends JTabbedPane> matcher)
Finds a
JTabbedPane in this fixture's Container , that matches the specified search criteria. |
JTabbedPaneFixture |
AbstractContainerFixture.tabbedPane(String name) |
JTabbedPaneFixture |
ComponentContainerFixture.tabbedPane(String name)
Finds a
JTabbedPane in this fixture's Container , which name matches the specified one. |
JTableFixture |
AbstractContainerFixture.table() |
JTableFixture |
ComponentContainerFixture.table()
Returns a
JTable found in this fixture's Container . |
JTableFixture |
AbstractContainerFixture.table(GenericTypeMatcher<? extends JTable> matcher) |
JTableFixture |
ComponentContainerFixture.table(GenericTypeMatcher<? extends JTable> matcher)
Finds a
JTable in this fixture's Container , that matches the specified search criteria. |
JTableFixture |
AbstractContainerFixture.table(String name) |
JTableFixture |
ComponentContainerFixture.table(String name)
Finds a
JTable in this fixture's Container , which name matches the specified one. |
JTextComponentFixture |
AbstractContainerFixture.textBox() |
JTextComponentFixture |
ComponentContainerFixture.textBox()
Returns a
JTextComponent found in this fixture's Container . |
JTextComponentFixture |
AbstractContainerFixture.textBox(GenericTypeMatcher<? extends JTextComponent> matcher) |
JTextComponentFixture |
ComponentContainerFixture.textBox(GenericTypeMatcher<? extends JTextComponent> matcher)
Finds a
JTextComponent in this fixture's Container managed by this fixture, that matches the
specified search criteria. |
JTextComponentFixture |
AbstractContainerFixture.textBox(String name) |
JToggleButtonFixture |
AbstractContainerFixture.toggleButton() |
JToggleButtonFixture |
ComponentContainerFixture.toggleButton()
Returns a
JToggleButton found in this fixture's Container . |
JToggleButtonFixture |
AbstractContainerFixture.toggleButton(GenericTypeMatcher<? extends JToggleButton> matcher) |
JToggleButtonFixture |
ComponentContainerFixture.toggleButton(GenericTypeMatcher<? extends JToggleButton> matcher)
Finds a
JToggleButton in this fixture's Container , that matches the specified search criteria. |
JToggleButtonFixture |
AbstractContainerFixture.toggleButton(String name) |
JToggleButtonFixture |
ComponentContainerFixture.toggleButton(String name)
Finds a
JToggleButton in this fixture's Container , which name matches the specified one. |
JToolBarFixture |
AbstractContainerFixture.toolBar() |
JToolBarFixture |
ComponentContainerFixture.toolBar()
Returns a
JToolBar found in this fixture's Container . |
JToolBarFixture |
AbstractContainerFixture.toolBar(GenericTypeMatcher<? extends JToolBar> matcher) |
JToolBarFixture |
ComponentContainerFixture.toolBar(GenericTypeMatcher<? extends JToolBar> matcher)
Finds a
JToolBar in this fixture's Container , that matches the specified search criteria. |
JToolBarFixture |
AbstractContainerFixture.toolBar(String name) |
JToolBarFixture |
ComponentContainerFixture.toolBar(String name)
Finds a
JToolBar in this fixture's Container , which name matches the specified one. |
JTreeFixture |
AbstractContainerFixture.tree() |
JTreeFixture |
ComponentContainerFixture.tree()
Returns a
JTree found in this fixture's Container . |
JTreeFixture |
AbstractContainerFixture.tree(GenericTypeMatcher<? extends JTree> matcher) |
JTreeFixture |
ComponentContainerFixture.tree(GenericTypeMatcher<? extends JTree> matcher)
Finds a
JTree in this fixture's Container , that matches the specified search criteria. |
JTreeFixture |
AbstractContainerFixture.tree(String name) |
JTreeFixture |
ComponentContainerFixture.tree(String name)
Finds a
JTree in this fixture's Container , which name matches the specified one. |
<C extends Component,F extends AbstractComponentFixture<?,C,?>> |
ComponentContainerFixture.with(ComponentFixtureExtension<C,F> extension)
Returns a
AbstractComponentFixture managing a component inside this fixture's Container . |
<T extends Component,F extends AbstractComponentFixture<?,T,?>> |
AbstractContainerFixture.with(ComponentFixtureExtension<T,F> extension) |
Modifier and Type | Method and Description |
---|---|
static String |
Formatting.inEdtFormat(Component c)
Returns a
String representation of the given AWT or Swing Component . |
Modifier and Type | Method and Description |
---|---|
void |
TransientWindowListener.eventDispatched(AWTEvent event) |
Modifier and Type | Method and Description |
---|---|
static AppletLauncher |
AppletLauncher.applet(Class<? extends Applet> appletType)
Creates a new
AppletLauncher . |
static AppletLauncher |
AppletLauncher.applet(String appletType)
Creates a new
AppletLauncher . |
Modifier and Type | Method and Description |
---|---|
static WindowMonitor |
WindowMonitor.instance() |
Modifier and Type | Method and Description |
---|---|
static boolean |
ComponentHasFocusQuery.hasFocus(Component component)
Indicates whether the given AWT or Swing
Component has input focus. |
static boolean |
ComponentShowingQuery.isShowing(Component component)
Indicates whether the given AWT or Swing
Component is showing or not. |
static boolean |
ComponentVisibleQuery.isVisible(Component component)
Indicates whether the given AWT or Swing
Component is visible or not. |
static Point |
ComponentLocationOnScreenQuery.locationOnScreen(Component component)
Returns the location of the given AWT or Swing
Component on screen. |
static Container |
ComponentParentQuery.parentOf(Component component)
Returns the parent of the given AWT or Swing
Component . |
static Dimension |
ComponentSizeQuery.sizeOf(Component component)
Returns the size of the given AWT or Swing
Component . |
static String |
AbstractButtonTextQuery.textOf(AbstractButton button)
Returns the text of the given Swing
AbstractButton . |
Modifier and Type | Method and Description |
---|---|
boolean |
TextReaders.containsText(Container container,
String text)
Indicates whether the given
Container or any of its subcomponents contains the given text. |
Copyright © 2014–2019 AssertJ. All rights reserved.