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. |
Modifier and Type | Interface and Description |
---|---|
interface |
ResettableComponentMatcher
ComponentMatcher whose internal state can be reset. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractComponentMatcher
Template for implementations of
ResettableComponentMatcher . |
class |
GenericTypeMatcher<T extends Component>
ComponentMatcher that matches an AWT or Swing Component by type and some custom search criteria. |
class |
LabelMatcher
Matches an AWT or Swing
Component by the text of the associated JLabel and (optionally) by type. |
class |
NameMatcher
Matches an AWT or Swing
Component by name and (optionally) by type. |
class |
TypeMatcher
Matches AWT or Swing
Component s by type. |
Modifier and Type | Method and Description |
---|---|
Component |
ComponentFinder.find(ComponentMatcher m)
Finds an AWT or Swing
Component using the given ComponentMatcher . |
Component |
BasicComponentFinder.find(ComponentMatcher m) |
Component |
ComponentFinder.find(Container root,
ComponentMatcher m)
Finds an AWT or Swing
Component using the given ComponentMatcher in the hierarchy under the given
root. |
Component |
BasicComponentFinder.find(Container root,
ComponentMatcher m) |
Collection<Component> |
ComponentFinder.findAll(ComponentMatcher m)
Returns all the AWT or Swing
Component s that match the search criteria specified in the given
ComponentMatcher . |
Collection<Component> |
BasicComponentFinder.findAll(ComponentMatcher m) |
Collection<Component> |
ComponentFinder.findAll(Container root,
ComponentMatcher m)
Returns all the AWT or Swing
Component s under the given root that match the search criteria specified in
the given ComponentMatcher . |
Collection<Component> |
BasicComponentFinder.findAll(Container root,
ComponentMatcher m) |
void |
BasicComponentPrinter.printComponents(PrintStream out,
ComponentMatcher matcher) |
void |
ComponentPrinter.printComponents(PrintStream out,
ComponentMatcher matcher)
Prints only the AWT and Swing
Component s that match the given search criteria in the hierarchy. |
void |
BasicComponentPrinter.printComponents(PrintStream out,
ComponentMatcher matcher,
Container root) |
void |
ComponentPrinter.printComponents(PrintStream out,
ComponentMatcher matcher,
Container root)
Prints all the AWT and Swing
Component s that match the given search criteria under the given root. |
Constructor and Description |
---|
ComponentFoundCondition(org.assertj.core.description.Description description,
ComponentFinder finder,
ComponentMatcher matcher)
Creates a new
ComponentFoundCondition . |
ComponentFoundCondition(org.assertj.core.description.Description description,
ComponentFinder finder,
ComponentMatcher matcher,
Container root)
Creates a new
ComponentFoundCondition . |
ComponentFoundCondition(String description,
ComponentFinder finder,
ComponentMatcher matcher)
Creates a new
ComponentFoundCondition . |
ComponentFoundCondition(String description,
ComponentFinder finder,
ComponentMatcher matcher,
Container root)
Creates a new
ComponentFoundCondition . |
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 | Class and Description |
---|---|
class |
JMenuItemMatcher
Matches a
JMenuItem given a simple label or a menu path of the format "menu|submenu|menuitem", for example
"File|Open|Can of worms". |
Modifier and Type | Method and Description |
---|---|
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.
|
Copyright © 2014–2019 AssertJ. All rights reserved.