Package org.apache.cxf.test
Class XPathAssert
java.lang.Object
org.apache.cxf.test.XPathAssert
XPath test assertions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertFault(Node node) static NodeListAssert that the following XPath query selects no nodes.static voidassertNoFault(Node node) static NodeListAssert that the following XPath query selects one or more nodes.static voidAssert that the following XPath query selects one or more nodes.static voidAsser that the text of the xpath node retrieved is equal to the value specified.static voidAsser that the text of the xpath node retrieved is equal to the value specified.static XPathcreateXPath(Map<String, String> namespaces) Create the specified XPath expression with the namespaces added via addNamespace().
-
Method Details
-
assertValid
public static NodeList assertValid(String xpath, Node node, Map<String, String> namespaces) throws ExceptionAssert that the following XPath query selects one or more nodes.- Parameters:
xpath-- Throws:
Exception
-
assertValidBoolean
public static void assertValidBoolean(String xpath, Node node, Map<String, String> namespaces) throws ExceptionAssert that the following XPath query selects one or more nodes.- Parameters:
xpath-- Throws:
Exception
-
assertInvalid
public static NodeList assertInvalid(String xpath, Node node, Map<String, String> namespaces) throws ExceptionAssert that the following XPath query selects no nodes.- Parameters:
xpath-- Throws:
Exception
-
assertXPathEquals
public static void assertXPathEquals(String xpath, String value, Node node, Map<String, String> namespaces) throws ExceptionAsser that the text of the xpath node retrieved is equal to the value specified.- Parameters:
xpath-value-node-- Throws:
Exception
-
assertXPathEquals
public static void assertXPathEquals(String xpath, QName value, Node node, Map<String, String> namespaces) throws ExceptionAsser that the text of the xpath node retrieved is equal to the value specified.- Parameters:
xpath-value-node-- Throws:
Exception
-
assertNoFault
- Throws:
Exception
-
assertFault
- Throws:
Exception
-
createXPath
Create the specified XPath expression with the namespaces added via addNamespace().- Throws:
Exception
-