public final class XPathAssert extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assertFault(Node node) |
static NodeList |
assertInvalid(String xpath,
Node node,
Map<String,String> namespaces)
Assert that the following XPath query selects no nodes.
|
static void |
assertNoFault(Node node) |
static NodeList |
assertValid(String xpath,
Node node,
Map<String,String> namespaces)
Assert that the following XPath query selects one or more nodes.
|
static void |
assertValidBoolean(String xpath,
Node node,
Map<String,String> namespaces)
Assert that the following XPath query selects one or more nodes.
|
static void |
assertXPathEquals(String xpath,
String value,
Node node,
Map<String,String> namespaces)
Asser that the text of the xpath node retrieved is equal to the value
specified.
|
static XPath |
createXPath(Map<String,String> namespaces)
Create the specified XPath expression with the namespaces added via
addNamespace().
|
public static NodeList assertValid(String xpath, Node node, Map<String,String> namespaces) throws Exception
xpath
- Exception
public static void assertValidBoolean(String xpath, Node node, Map<String,String> namespaces) throws Exception
xpath
- Exception
public static NodeList assertInvalid(String xpath, Node node, Map<String,String> namespaces) throws Exception
xpath
- Exception
public static void assertXPathEquals(String xpath, String value, Node node, Map<String,String> namespaces) throws Exception
xpath
- value
- node
- Exception
Apache CXF