Class XPathRegexAssert
- java.lang.Object
-
- org.custommonkey.xmlunit.examples.XPathRegexAssert
-
public class XPathRegexAssert extends java.lang.ObjectExample 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 Modifier and Type Field Description private static java.lang.StringEXPECTED_VALUE_TO_MATCH
-
Constructor Summary
Constructors Modifier Constructor Description privateXPathRegexAssert()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertXPathMatches(java.lang.String regex, java.lang.String xpath, java.io.Reader reader)static voidassertXPathMatches(java.lang.String regex, java.lang.String xpath, java.lang.String xml)static voidassertXPathMatches(java.lang.String message, java.lang.String regex, java.lang.String xpath, java.io.Reader reader)static voidassertXPathMatches(java.lang.String message, java.lang.String regex, java.lang.String xpath, java.lang.String xml)static voidassertXPathMatches(java.lang.String message, java.lang.String regex, java.lang.String xpath, org.w3c.dom.Document doc)static voidassertXPathMatches(java.lang.String regex, java.lang.String xpath, org.w3c.dom.Document doc)
-
-
-
Field Detail
-
EXPECTED_VALUE_TO_MATCH
private static final java.lang.String EXPECTED_VALUE_TO_MATCH
- See Also:
- Constant Field Values
-
-
Method Detail
-
assertXPathMatches
public static void assertXPathMatches(java.lang.String message, java.lang.String regex, java.lang.String xpath, org.w3c.dom.Document doc) throws XpathException- Throws:
XpathException
-
assertXPathMatches
public static void assertXPathMatches(java.lang.String message, java.lang.String regex, java.lang.String xpath, java.lang.String xml) throws XpathException, org.xml.sax.SAXException, java.io.IOException- Throws:
XpathExceptionorg.xml.sax.SAXExceptionjava.io.IOException
-
assertXPathMatches
public static void assertXPathMatches(java.lang.String message, java.lang.String regex, java.lang.String xpath, java.io.Reader reader) throws XpathException, org.xml.sax.SAXException, java.io.IOException- Throws:
XpathExceptionorg.xml.sax.SAXExceptionjava.io.IOException
-
assertXPathMatches
public static void assertXPathMatches(java.lang.String regex, java.lang.String xpath, org.w3c.dom.Document doc) throws XpathException- Throws:
XpathException
-
assertXPathMatches
public static void assertXPathMatches(java.lang.String regex, java.lang.String xpath, java.lang.String xml) throws XpathException, org.xml.sax.SAXException, java.io.IOException- Throws:
XpathExceptionorg.xml.sax.SAXExceptionjava.io.IOException
-
assertXPathMatches
public static void assertXPathMatches(java.lang.String regex, java.lang.String xpath, java.io.Reader reader) throws XpathException, org.xml.sax.SAXException, java.io.IOException- Throws:
XpathExceptionorg.xml.sax.SAXExceptionjava.io.IOException
-
-