org.xmlmatchers.xpath
Class HasXPath
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<Source>
org.xmlmatchers.xpath.HasXPath
- Type Parameters:
T - The type to execute the XPath against
- All Implemented Interfaces:
- org.hamcrest.Matcher<Source>, org.hamcrest.SelfDescribing
public class HasXPath
- extends org.hamcrest.TypeSafeMatcher<Source>
- Author:
- David Ehringer
|
Method Summary |
void |
describeTo(org.hamcrest.Description description)
|
static org.hamcrest.Matcher<Source> |
hasXPath(String xPath)
|
static org.hamcrest.Matcher<Source> |
hasXPath(String xPath,
org.hamcrest.Matcher<? super String> valueMatcher)
|
static org.hamcrest.Matcher<Source> |
hasXPath(String xPath,
org.hamcrest.Matcher<? super String> valueMatcher,
NamespaceContext namespaceContext)
|
static org.hamcrest.Matcher<Source> |
hasXPath(String xPath,
NamespaceContext namespaceContext)
|
static org.hamcrest.Matcher<Source> |
hasXPath(String xPath,
NamespaceContext namespaceContext,
org.hamcrest.Matcher<? super String> valueMatcher)
|
static
<T> org.hamcrest.Matcher<Source> |
|
hasXPath(String xPath,
NamespaceContext namespaceContext,
XpathReturnType<? super T> xpathReturnType,
org.hamcrest.Matcher<? super T> valueMatcher)
|
static
<T> org.hamcrest.Matcher<Source> |
|
hasXPath(String xPath,
XpathReturnType<? super T> xpathReturnType,
org.hamcrest.Matcher<? super T> valueMatcher)
|
boolean |
matchesSafely(Source source)
|
| Methods inherited from class org.hamcrest.TypeSafeMatcher |
describeMismatch, describeMismatchSafely, matches |
| Methods inherited from class org.hamcrest.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
HasXPath
protected HasXPath(String xPathExpression)
HasXPath
protected HasXPath(String xPathExpression,
org.hamcrest.Matcher<? super String> valueMatcher,
NamespaceContext namespaceContext)
HasXPath
public HasXPath(String xPathExpression,
org.hamcrest.Matcher<?> valueMatcher,
NamespaceContext namespaceContext,
XpathReturnType<?> xPathReturnType)
describeTo
public void describeTo(org.hamcrest.Description description)
matchesSafely
public boolean matchesSafely(Source source)
- Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<Source>
hasXPath
public static org.hamcrest.Matcher<Source> hasXPath(String xPath)
hasXPath
public static org.hamcrest.Matcher<Source> hasXPath(String xPath,
NamespaceContext namespaceContext)
hasXPath
public static org.hamcrest.Matcher<Source> hasXPath(String xPath,
org.hamcrest.Matcher<? super String> valueMatcher)
hasXPath
public static org.hamcrest.Matcher<Source> hasXPath(String xPath,
NamespaceContext namespaceContext,
org.hamcrest.Matcher<? super String> valueMatcher)
hasXPath
public static <T> org.hamcrest.Matcher<Source> hasXPath(String xPath,
XpathReturnType<? super T> xpathReturnType,
org.hamcrest.Matcher<? super T> valueMatcher)
hasXPath
public static <T> org.hamcrest.Matcher<Source> hasXPath(String xPath,
NamespaceContext namespaceContext,
XpathReturnType<? super T> xpathReturnType,
org.hamcrest.Matcher<? super T> valueMatcher)
hasXPath
public static org.hamcrest.Matcher<Source> hasXPath(String xPath,
org.hamcrest.Matcher<? super String> valueMatcher,
NamespaceContext namespaceContext)
Copyright © 2010-2011. All Rights Reserved.