public class ComponentVisibleCondition
extends org.assertj.swing.timing.Condition
| Constructor and Description |
|---|
ComponentVisibleCondition(org.assertj.swing.core.ComponentFinder finder,
org.assertj.swing.core.ComponentMatcher matcher)
Creates a new
|
ComponentVisibleCondition(String name)
Creates a new
|
ComponentVisibleCondition(String name,
Class<? extends Component> type)
Creates a new
|
ComponentVisibleCondition(String description,
org.assertj.swing.core.ComponentFinder finder,
org.assertj.swing.core.ComponentMatcher matcher)
Creates a new
|
| Modifier and Type | Method and Description |
|---|---|
Component |
found() |
boolean |
test()
Returns
true if a component that matches the search criteria in this
condition's can be found. |
public ComponentVisibleCondition(String name, Class<? extends Component> type)
ComponentVisibleConditionname - The name of the component to find.type - The type of the component to find.public ComponentVisibleCondition(String name)
ComponentVisibleConditionname - The name of the component to find.public ComponentVisibleCondition(org.assertj.swing.core.ComponentFinder finder,
org.assertj.swing.core.ComponentMatcher matcher)
ComponentVisibleConditionfinder - performs the component search.matcher - specifies the condition that the component we are looking for needs to
match.public ComponentVisibleCondition(String description, org.assertj.swing.core.ComponentFinder finder, org.assertj.swing.core.ComponentMatcher matcher)
ComponentVisibleConditiondescription - the description of this condition.finder - performs the component search.matcher - specifies the condition that the component we are looking for needs to
match.public boolean test()
true if a component that matches the search criteria in this
condition's ComponentMatcher can be found. Otherwise, this
method returns false.test in class org.assertj.swing.timing.Conditiontrue if a matching component can be found, false otherwise.public Component found()
Copyright © 2014–2020 AssertJ. All rights reserved.