org.hamcrest.xml
public class HasXPath extends TypeSafeMatcher<Node>
| Constructor and Description |
|---|
HasXPath(String xPathExpression,
Matcher<String> valueMatcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(Description description)
Generates a description of the object.
|
static Matcher<Node> |
hasXPath(String xPath) |
static Matcher<Node> |
hasXPath(String xPath,
Matcher<String> valueMatcher) |
boolean |
matchesSafely(Node item)
Subclasses should implement this.
|
matches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic boolean matchesSafely(Node item)
TypeSafeMatchermatchesSafely in class TypeSafeMatcher<Node>public void describeTo(Description description)
SelfDescribingdescription - The description to be built or appended to.