Package | Description |
---|---|
org.assertj.swing.core |
Low-level components that enable functional testing of AWT and Swing
Component s. |
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
Component s. |
org.assertj.swing.fixture |
Public API, source of AssertJ-Swing'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
Component s 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
Component s 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
Dialog s by name, title or visibility on the screen. |
class |
FrameMatcher
Matches AWT or Swing
Frame s by name, title or visibility on the screen. |
class |
JButtonMatcher
Matches
JButton s by name, text or visibility on the screen. |
class |
JLabelMatcher
Matches
JLabel s by name, text or visibility on the screen. |
class |
JTextComponentMatcher
Matches
JTextComponent s 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 |
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. |
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. |
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. |
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. |
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. |
protected <T extends Component> |
AbstractContainerFixture.find(GenericTypeMatcher<? extends T> matcher)
|
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. |
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. |
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. |
JMenuItemFixture |
JPopupMenuFixture.menuItem(GenericTypeMatcher<? extends JMenuItem> matcher)
Finds a
JMenuItem , contained in this fixture's JPopupMenu , that matches the specified search
criteria. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
Copyright © 2014–2019 AssertJ. All rights reserved.