public class ElementWithName
extends org.hamcrest.TypeSafeDiagnosingMatcher<org.jsoup.nodes.Element>
Element with a certain name. E.g. <div> has name "div".| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
static org.hamcrest.Matcher<org.jsoup.nodes.Element> |
hasName(org.hamcrest.Matcher<? super String> matcher)
Creates a
ElementWithName. |
static org.hamcrest.Matcher<org.jsoup.nodes.Element> |
hasName(String name)
Creates a
ElementWithName. |
protected boolean |
matchesSafely(org.jsoup.nodes.Element item,
org.hamcrest.Description mismatchDescription) |
public static org.hamcrest.Matcher<org.jsoup.nodes.Element> hasName(org.hamcrest.Matcher<? super String> matcher)
ElementWithName.matcher - matcher to match the Elements name againstElementWithNameElementWithNamepublic static org.hamcrest.Matcher<org.jsoup.nodes.Element> hasName(String name)
ElementWithName.name - string that the Elements name should be equal toElementWithNameElementWithNameprotected 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 © 2015 FD Mediagroep. All rights reserved.