Class XPathRegexAssert
java.lang.Object
org.custommonkey.xmlunit.examples.XPathRegexAssert
Example demonstrating how to use the XPath API of XMLUnit in
conjunction with regular expressions (as provided by the
java.util.regex package of JDK 1.4+).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertXPathMatches(String regex, String xpath, Reader reader) static voidassertXPathMatches(String regex, String xpath, String xml) static voidassertXPathMatches(String message, String regex, String xpath, Reader reader) static voidassertXPathMatches(String message, String regex, String xpath, String xml) static voidassertXPathMatches(String message, String regex, String xpath, Document doc) static voidassertXPathMatches(String regex, String xpath, Document doc)
-
Field Details
-
EXPECTED_VALUE_TO_MATCH
- See Also:
-
-
Constructor Details
-
XPathRegexAssert
private XPathRegexAssert()
-
-
Method Details
-
assertXPathMatches
public static void assertXPathMatches(String message, String regex, String xpath, Document doc) throws XpathException - Throws:
XpathException
-
assertXPathMatches
public static void assertXPathMatches(String message, String regex, String xpath, String xml) throws XpathException, SAXException, IOException - Throws:
XpathExceptionSAXExceptionIOException
-
assertXPathMatches
public static void assertXPathMatches(String message, String regex, String xpath, Reader reader) throws XpathException, SAXException, IOException - Throws:
XpathExceptionSAXExceptionIOException
-
assertXPathMatches
public static void assertXPathMatches(String regex, String xpath, Document doc) throws XpathException - Throws:
XpathException
-
assertXPathMatches
public static void assertXPathMatches(String regex, String xpath, String xml) throws XpathException, SAXException, IOException - Throws:
XpathExceptionSAXExceptionIOException
-
assertXPathMatches
public static void assertXPathMatches(String regex, String xpath, Reader reader) throws XpathException, SAXException, IOException - Throws:
XpathExceptionSAXExceptionIOException
-