public final class ComponentFoundCondition extends Condition
EMPTY_TEXT
Constructor and Description |
---|
ComponentFoundCondition(org.fest.assertions.Description description,
ComponentFinder finder,
ComponentMatcher matcher)
Creates a new
|
ComponentFoundCondition(org.fest.assertions.Description description,
ComponentFinder finder,
ComponentMatcher matcher,
Container root)
Creates a new
|
ComponentFoundCondition(String description,
ComponentFinder finder,
ComponentMatcher matcher)
Creates a new
|
ComponentFoundCondition(String description,
ComponentFinder finder,
ComponentMatcher matcher,
Container root)
Creates a new
|
Modifier and Type | Method and Description |
---|---|
protected String |
descriptionAddendum()
Returns the component hierarchy to be added to this condition's description in case of a component lookup failure.
|
Collection<? extends Component> |
duplicatesFound()
Returns all the components that satisfied the search criteria specified by this condition's
. |
Component |
found()
Returns the component found (if any.)
|
boolean |
test()
Returns
true if a component that matches the search criteria in this condition's
can be found. |
public ComponentFoundCondition(String description, ComponentFinder finder, ComponentMatcher matcher)
ComponentFoundCondition
description
- 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 ComponentFoundCondition(String description, ComponentFinder finder, ComponentMatcher matcher, Container root)
ComponentFoundCondition
description
- the description of this condition.finder
- performs the component search.matcher
- specifies the condition that the component we are looking for needs to match.root
- the root used as the starting point of the search.public ComponentFoundCondition(org.fest.assertions.Description description, ComponentFinder finder, ComponentMatcher matcher)
ComponentFoundCondition
description
- 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 ComponentFoundCondition(org.fest.assertions.Description description, ComponentFinder finder, ComponentMatcher matcher, Container root)
ComponentFoundCondition
description
- the description of this condition.finder
- performs the component search.matcher
- specifies the condition that the component we are looking for needs to match.root
- the root used as the starting point of the search.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
.protected String descriptionAddendum()
descriptionAddendum
in class Condition
public Component found()
public Collection<? extends Component> duplicatesFound()
ComponentMatcher
.ComponentMatcher
.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.