public class ElementWithOwnText
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> |
hasOwnText(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> hasOwnText(String text)
Matcher for a JSoup Element with the given text as its own text content.text - The text content to matchMatcher 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.