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_, toString
public boolean matchesSafely(Node item)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<Node>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.