| Package | Description |
|---|---|
| org.assertj.swing.core |
Low-level components that enable functional testing of AWT and Swing
Components. |
| org.assertj.swing.core.matcher |
Common-use implementations of
GenericTypeMatcher. |
| org.assertj.swing.driver |
Component-specific test drivers. |
| org.assertj.swing.finder |
Utilities for finding
Components. |
| org.assertj.swing.fixture |
Public API, source of FEST's power and flexibility.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Component> |
ComponentFinder.find(Container root,
GenericTypeMatcher<T> m)
Finds an AWT or Swing
Component using the given GenericTypeMatcher in the hierarchy under the given
root. |
<T extends Component> |
BasicComponentFinder.find(Container root,
GenericTypeMatcher<T> m) |
<T extends Component> |
ComponentFinder.find(GenericTypeMatcher<T> m)
Finds an AWT or Swing
Component using the given GenericTypeMatcher. |
<T extends Component> |
BasicComponentFinder.find(GenericTypeMatcher<T> m) |
<T extends Component> |
ComponentFinder.findAll(Container root,
GenericTypeMatcher<T> m)
Returns all the AWT or Swing
Components under the given root that match the search criteria specified in
the given GenericTypeMatcher. |
<T extends Component> |
BasicComponentFinder.findAll(Container root,
GenericTypeMatcher<T> m) |
<T extends Component> |
ComponentFinder.findAll(GenericTypeMatcher<T> m)
Returns all the AWT or Swing
Components that match the search criteria specified in the given
GenericTypeMatcher. |
<T extends Component> |
BasicComponentFinder.findAll(GenericTypeMatcher<T> m) |
| Modifier and Type | Class and Description |
|---|---|
class |
DialogMatcher
Matches AWT or Swing
Dialogs by name, title or visibility on the screen. |
class |
FrameMatcher
Matches AWT or Swing
Frames by name, title or visibility on the screen. |
class |
JButtonMatcher
Matches
JButtons by name, text or visibility on the screen. |
class |
JLabelMatcher
Matches
JLabels by name, text or visibility on the screen. |
class |
JTextComponentMatcher
Matches
JTextComponents by name, text or visibility on the screen. |
class |
NamedComponentMatcherTemplate<T extends Component>
Template for matching AWT or Swing
Component by name. |
| Modifier and Type | Method and Description |
|---|---|
JMenuItem |
JPopupMenuDriver.menuItem(JPopupMenu popupMenu,
GenericTypeMatcher<? extends JMenuItem> matcher)
Finds a
JMenuItem, contained in the Container, that matches the specified search criteria. |
| Modifier and Type | Method and Description |
|---|---|
static DialogFinder |
WindowFinder.findDialog(GenericTypeMatcher<? extends Dialog> matcher)
Creates a new
DialogFinder capable of looking up a Dialog using the provided matcher. |
static JFileChooserFinder |
JFileChooserFinder.findFileChooser(GenericTypeMatcher<? extends JFileChooser> matcher)
Creates a new
JFileChooserFinder capable of looking up a JFileChooser using the given matcher. |
static FrameFinder |
WindowFinder.findFrame(GenericTypeMatcher<? extends Frame> matcher)
Creates a new
FrameFinder capable of looking up a Frame using the provided matcher. |
static JOptionPaneFinder |
JOptionPaneFinder.findOptionPane(GenericTypeMatcher<? extends JOptionPane> matcher)
Creates a new
JOptionPaneFinder capable of looking up a JOptionPane using the given matcher. |
| Constructor and Description |
|---|
ComponentFinderTemplate(GenericTypeMatcher<? extends T> matcher)
Creates a new
ComponentFinderTemplate. |
DialogFinder(GenericTypeMatcher<? extends Dialog> matcher)
Creates a new
DialogFinder. |
FrameFinder(GenericTypeMatcher<? extends Frame> matcher)
Creates a new
FrameFinder. |
JFileChooserFinder(GenericTypeMatcher<? extends JFileChooser> matcher)
Creates a new
JFileChooserFinder. |
JOptionPaneFinder(GenericTypeMatcher<? extends JOptionPane> matcher)
Creates a new
JOptionPaneFinder. |
WindowFinderTemplate(GenericTypeMatcher<? extends T> matcher)
Creates a new
WindowFinderTemplate. |
| Modifier and Type | Method and Description |
|---|---|
JButtonFixture |
ComponentContainerFixture.button(GenericTypeMatcher<? extends JButton> matcher)
Finds a
JButton in this fixture's Container, that matches the specified search criteria. |
JButtonFixture |
AbstractContainerFixture.button(GenericTypeMatcher<? extends JButton> 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(GenericTypeMatcher<? extends JCheckBox> 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(GenericTypeMatcher<? extends JComboBox> matcher) |
DialogFixture |
ComponentContainerFixture.dialog(GenericTypeMatcher<? extends Dialog> matcher)
Finds a
Dialog that matches the specified search criteria. |
DialogFixture |
AbstractContainerFixture.dialog(GenericTypeMatcher<? extends Dialog> matcher) |
DialogFixture |
ComponentContainerFixture.dialog(GenericTypeMatcher<? extends Dialog> matcher,
Timeout timeout)
Finds a
Dialog that matches the specified search criteria. |
DialogFixture |
AbstractContainerFixture.dialog(GenericTypeMatcher<? extends Dialog> matcher,
Timeout timeout) |
JFileChooserFixture |
ComponentContainerFixture.fileChooser(GenericTypeMatcher<? extends JFileChooser> matcher)
Finds a
JFileChooser that matches the specified search criteria. |
JFileChooserFixture |
AbstractContainerFixture.fileChooser(GenericTypeMatcher<? extends JFileChooser> matcher) |
JFileChooserFixture |
ComponentContainerFixture.fileChooser(GenericTypeMatcher<? extends JFileChooser> matcher,
Timeout timeout)
Finds a
JFileChooser that matches the specified search criteria. |
JFileChooserFixture |
AbstractContainerFixture.fileChooser(GenericTypeMatcher<? extends JFileChooser> matcher,
Timeout timeout) |
protected <T extends Component> |
AbstractContainerFixture.find(GenericTypeMatcher<? extends T> 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(GenericTypeMatcher<? extends JLabel> 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(GenericTypeMatcher<? extends JList> 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(GenericTypeMatcher<? extends JMenuItem> matcher) |
JMenuItemFixture |
JPopupMenuFixture.menuItem(GenericTypeMatcher<? extends JMenuItem> matcher)
Finds a
JMenuItem, contained in this fixture's JPopupMenu, that matches the specified search
criteria. |
JPanelFixture |
ComponentContainerFixture.panel(GenericTypeMatcher<? extends JPanel> matcher)
Finds a
JPanel in this fixture's Container, that matches the specified search criteria. |
JPanelFixture |
AbstractContainerFixture.panel(GenericTypeMatcher<? extends JPanel> 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(GenericTypeMatcher<? extends JProgressBar> 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(GenericTypeMatcher<? extends JRadioButton> 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(GenericTypeMatcher<? extends JScrollBar> 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(GenericTypeMatcher<? extends JScrollPane> 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(GenericTypeMatcher<? extends JSlider> 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(GenericTypeMatcher<? extends JSpinner> 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(GenericTypeMatcher<? extends JSplitPane> 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(GenericTypeMatcher<? extends JTabbedPane> 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(GenericTypeMatcher<? extends JTable> 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(GenericTypeMatcher<? extends JTextComponent> 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(GenericTypeMatcher<? extends JToggleButton> 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(GenericTypeMatcher<? extends JToolBar> 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(GenericTypeMatcher<? extends JTree> matcher) |
Copyright © 2014 AssertJ. All rights reserved.