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+).
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertXPathMatches
(String regex, String xpath, Reader reader) static void
assertXPathMatches
(String regex, String xpath, String xml) static void
assertXPathMatches
(String message, String regex, String xpath, Reader reader) static void
assertXPathMatches
(String message, String regex, String xpath, String xml) static void
assertXPathMatches
(String message, String regex, String xpath, Document doc) static void
assertXPathMatches
(String regex, String xpath, Document doc)
-
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:
XpathException
SAXException
IOException
-
assertXPathMatches
public static void assertXPathMatches(String message, String regex, String xpath, Reader reader) throws XpathException, SAXException, IOException - Throws:
XpathException
SAXException
IOException
-
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:
XpathException
SAXException
IOException
-
assertXPathMatches
public static void assertXPathMatches(String regex, String xpath, Reader reader) throws XpathException, SAXException, IOException - Throws:
XpathException
SAXException
IOException
-