public final class HasXPath extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.TypeSafeMatcher<String> |
hasXPath(String xPath)
Returns a Matcher<String> (presumably for matching a string containing XML) which checks that the given xPath exists (ie doesn't return null).
|
static org.hamcrest.TypeSafeMatcher<String> |
hasXPath(String xPath,
org.hamcrest.Matcher<String> matcher)
Returns a Matcher<String> (presumably for matching a string containing XML) which checks that the given xPath is matched by the matcher.
|
public static org.hamcrest.TypeSafeMatcher<String> hasXPath(String xPath, org.hamcrest.Matcher<String> matcher)
xPath - The XPath to checkmatcher - The matcher to verifyCopyright © 2013. All Rights Reserved.