public class ElementWithText
extends org.hamcrest.TypeSafeDiagnosingMatcher<org.jsoup.nodes.Element>
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
static org.hamcrest.Matcher<org.jsoup.nodes.Element> |
hasText(org.hamcrest.Matcher<? super String> textMatcher)
Creates a
Matcher for a JSoup Element with the given text as its own text content. |
static org.hamcrest.Matcher<org.jsoup.nodes.Element> |
hasText(String text)
Creates a
Matcher for a JSoup Element with the given text as its own text content. |
protected boolean |
matchesSafely(org.jsoup.nodes.Element item,
org.hamcrest.Description mismatchDescription) |
public static org.hamcrest.Matcher<org.jsoup.nodes.Element> hasText(String text)
Matcher for a JSoup Element with the given text as its own text content. Also
see hasText(org.hamcrest.Matcher) for use with matchers.text - The text content to matchMatcher for a JSoup Element with the given text as its own text contentpublic static org.hamcrest.Matcher<org.jsoup.nodes.Element> hasText(org.hamcrest.Matcher<? super String> textMatcher)
Matcher for a JSoup Element with the given text as its own text content.textMatcher - Matcher for the element's textMatcher for a JSoup Element with the given text as its own text contentprotected boolean matchesSafely(org.jsoup.nodes.Element item,
org.hamcrest.Description mismatchDescription)
matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<org.jsoup.nodes.Element>public void describeTo(org.hamcrest.Description description)
Copyright © 2016 FD Mediagroep. All rights reserved.