public class SelectingFirst
extends org.hamcrest.TypeSafeDiagnosingMatcher<org.jsoup.nodes.Element>
| Constructor and Description |
|---|
SelectingFirst(String cssExpression,
org.hamcrest.Matcher<org.jsoup.nodes.Element> selectionMatcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
matchesSafely(org.jsoup.nodes.Element item,
org.hamcrest.Description mismatchDescription) |
static org.hamcrest.Matcher<org.jsoup.nodes.Element> |
selectingFirst(String cssExpression,
org.hamcrest.Matcher<org.jsoup.nodes.Element> elementMatcher)
Creates a
Matcher for a JSoup Element that has a list of child nodes
matching the specified cssExpression that are matched by the specified elementsMatcher. |
public SelectingFirst(String cssExpression, org.hamcrest.Matcher<org.jsoup.nodes.Element> selectionMatcher)
protected boolean matchesSafely(org.jsoup.nodes.Element item,
org.hamcrest.Description mismatchDescription)
matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<org.jsoup.nodes.Element>public static org.hamcrest.Matcher<org.jsoup.nodes.Element> selectingFirst(String cssExpression, org.hamcrest.Matcher<org.jsoup.nodes.Element> elementMatcher)
Matcher for a JSoup Element that has a list of child nodes
matching the specified cssExpression that are matched by the specified elementsMatcher.cssExpression - The Jsoup CSS expression used to selected a list of child nodeselementMatcher - the matcher that the selected child nodes will be matched againstMatcher for a JSoup Elementpublic void describeTo(org.hamcrest.Description description)
Copyright © 2015 FD Mediagroep. All rights reserved.