public class XPathRegexAssert extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
assertXPathMatches(String regex,
String xpath,
Document doc)
Asserts result of applying an XPath expression to a document matches a regular expression.
|
static void |
assertXPathMatches(String regex,
String xpath,
Reader reader)
Asserts result of applying an XPath expression to a document matches a regular expression.
|
static void |
assertXPathMatches(String regex,
String xpath,
String xml)
Asserts result of applying an XPath expression to a document matches a regular expression.
|
static void |
assertXPathMatches(String message,
String regex,
String xpath,
Document doc)
Asserts result of applying an XPath expression to a document matches a regular expression.
|
static void |
assertXPathMatches(String message,
String regex,
String xpath,
Reader reader)
Asserts result of applying an XPath expression to a document matches a regular expression.
|
static void |
assertXPathMatches(String message,
String regex,
String xpath,
String xml)
Asserts result of applying an XPath expression to a document matches a regular expression.
|
public static void assertXPathMatches(String message, String regex, String xpath, Document doc) throws XpathException
message - assertion messageregex - regular expressionxpath - XPath expressiondoc - document to apply XPath expression toXpathException - if XPath construction failspublic static void assertXPathMatches(String message, String regex, String xpath, String xml) throws XpathException, SAXException, IOException
message - assertion messageregex - regular expressionxpath - XPath expressionxml - document to apply XPath expression toXpathException - if XPath construction failsSAXException - if the parser says soIOException - on I/O errorspublic static void assertXPathMatches(String message, String regex, String xpath, Reader reader) throws XpathException, SAXException, IOException
message - assertion messageregex - regular expressionxpath - XPath expressionreader - document to apply XPath expression toXpathException - if XPath construction failsSAXException - if the parser says soIOException - on I/O errorspublic static void assertXPathMatches(String regex, String xpath, Document doc) throws XpathException
regex - regular expressionxpath - XPath expressiondoc - document to apply XPath expression toXpathException - if XPath construction failspublic static void assertXPathMatches(String regex, String xpath, String xml) throws XpathException, SAXException, IOException
regex - regular expressionxpath - XPath expressionxml - document to apply XPath expression toXpathException - if XPath construction failsSAXException - if the parser says soIOException - on I/O errorspublic static void assertXPathMatches(String regex, String xpath, Reader reader) throws XpathException, SAXException, IOException
regex - regular expressionxpath - XPath expressionreader - document to apply XPath expression toXpathException - if XPath construction failsSAXException - if the parser says soIOException - on I/O errorsCopyright © 2001–2025 XMLUnit. All rights reserved.