public final class ComponentFoundCondition extends Condition
Component that matches certain search criteria is found.EMPTY_TEXT| 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 | Method and Description |
|---|---|
protected String |
descriptionAddendum()
Returns any text to be added to this condition's description.
|
Collection<Component> |
duplicatesFound() |
Component |
found() |
boolean |
test()
Indicates whether
true an AWT or Swing Component, that matches the search criteria in this
condition's ComponentMatcher, can be found. |
public ComponentFoundCondition(@Nonnull String description, @Nonnull ComponentFinder finder, @Nonnull ComponentMatcher matcher)
ComponentFoundCondition.description - the description of this condition.finder - performs the search.matcher - specifies the condition that the AWT or Swing Component we are looking for needs to match.public ComponentFoundCondition(@Nonnull String description, @Nonnull ComponentFinder finder, @Nonnull ComponentMatcher matcher, @Nullable Container root)
ComponentFoundCondition.description - the description of this condition.finder - performs the search.matcher - specifies the condition that the AWT or Swing Component we are looking for needs to match.root - the root Container used as the starting point of the search.public ComponentFoundCondition(@Nonnull org.assertj.core.description.Description description, @Nonnull ComponentFinder finder, @Nonnull ComponentMatcher matcher)
ComponentFoundCondition.description - the description of this condition.finder - performs the search.matcher - specifies the condition that the AWT or Swing Component we are looking for needs to match.public ComponentFoundCondition(@Nonnull org.assertj.core.description.Description description, @Nonnull ComponentFinder finder, @Nonnull ComponentMatcher matcher, @Nullable Container root)
ComponentFoundCondition.description - the description of this condition.finder - performs the search.matcher - specifies the condition that the AWT or Swing Component we are looking for needs to match.root - the root Container used as the starting point of the search.public boolean test()
true an AWT or Swing Component, that matches the search criteria in this
condition's ComponentMatcher, can be found.@Nonnull protected String descriptionAddendum()
ConditionString.descriptionAddendum in class ConditionComponent hierarchy to be added to this condition's description in case of a lookup
failure.public Collection<Component> duplicatesFound()
Components that satisfied the search criteria specified by this condition's
ComponentMatcher.Copyright © 2014 AssertJ. All rights reserved.