public class ElementWithAttribute
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> |
hasAttribute(String attributeName,
org.hamcrest.Matcher<? super String> attributeValueMatcher)
Creates a
Matcher for a JSoup Element with the given expectedValue for the given attributeName. |
static org.hamcrest.Matcher<org.jsoup.nodes.Element> |
hasAttribute(String attributeName,
String expectedValue)
Creates a
Matcher for a JSoup Element with the given expectedValue for the given attributeName. |
static org.hamcrest.Matcher<org.jsoup.nodes.Element> |
hasHref(org.hamcrest.Matcher<? super String> attributeValueMatcher)
Deprecated.
Use
instead |
static org.hamcrest.Matcher<org.jsoup.nodes.Element> |
hasHref(String expectedValue)
Deprecated.
Use
instead |
protected boolean |
matchesSafely(org.jsoup.nodes.Element item,
org.hamcrest.Description mismatchDescription) |
protected 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)
public static org.hamcrest.Matcher<org.jsoup.nodes.Element> hasAttribute(String attributeName, String expectedValue)
Matcher for a JSoup Element with the given expectedValue for the given attributeName. See hasAttribute(String, org.hamcrest.Matcher) for use with Matchers.attributeName - The attribute name whose value to checkexpectedValue - The attribute value that is expectedMatcher for a JSoup Element with the given expectedValue for the given attributeNamepublic static org.hamcrest.Matcher<org.jsoup.nodes.Element> hasAttribute(String attributeName, org.hamcrest.Matcher<? super String> attributeValueMatcher)
Matcher for a JSoup Element with the given expectedValue for the given attributeName.attributeName - The attribute name whose value to checkattributeValueMatcher - A matcher for the attribute valueMatcher for a JSoup Element with the given expectedValue for the given attributeNamepublic static org.hamcrest.Matcher<org.jsoup.nodes.Element> hasHref(String expectedValue)
insteadMatcher for a JSoup Element with the given expectedValue for the "href"
attribute. See hasAttribute(String, org.hamcrest.Matcher) for use with Matchers.expectedValue - The attribute value that is expectedMatcher for a JSoup Element with the given expectedValue for the "href"public static org.hamcrest.Matcher<org.jsoup.nodes.Element> hasHref(org.hamcrest.Matcher<? super String> attributeValueMatcher)
insteadMatcher for a JSoup Element with the given expectedValue for the "href"
attribute. See hasAttribute(String, org.hamcrest.Matcher) for use with Matchers.attributeValueMatcher - A matcher for the attribute valueMatcher for a JSoup Element with the given expectedValue for the "href"Copyright © 2016 FD Mediagroep. All rights reserved.