public class XMLAssert extends junit.framework.Assert implements XSLTConstants
assertXMLEqualassertXMLNotEqualassertXMLIdenticalassertXMLEqual is sufficientassertXpathExistsassertXpathNotExistsassertXpathsEqualassertXpathsNotEqualassertXpathValuesEqualassertXpathValuesNotEqualassertXpathEvaluatesToassertXMLValidassertNodeTestPassesNodeTestDiff instances which can be instantiated and evaluated
independently of this class.JAVA5_XSLTC_FACTORY_NAME, XSLT_END, XSLT_IDENTITY_TEMPLATE, XSLT_START, XSLT_START_NO_VERSION, XSLT_STRIP_COMMENTS_TEMPLATE, XSLT_STRIP_WHITESPACE, XSLT_XML_OUTPUT_NOINDENTCLOSE_NODE, END_CDATA, END_COMMENT, END_PROCESSING_INSTRUCTION, NULL_NS_URI, OPEN_END_NODE, OPEN_START_NODE, START_CDATA, START_COMMENT, START_DOCTYPE, START_PROCESSING_INSTRUCTION, W3C_XML_SCHEMA_INSTANCE_NO_NAMESPACE_SCHEMA_LOCATION_ATTR, W3C_XML_SCHEMA_INSTANCE_NS_URI, W3C_XML_SCHEMA_INSTANCE_SCHEMA_LOCATION_ATTR, W3C_XML_SCHEMA_INSTANCE_TYPE_ATTR, W3C_XML_SCHEMA_NS_URI, XML_DECLARATION, XMLNS_ATTRIBUTE_URI, XMLNS_PREFIX, XPATH_ATTRIBUTE_IDENTIFIER, XPATH_CHARACTER_NODE_IDENTIFIER, XPATH_COMMENT_IDENTIFIER, XPATH_NODE_INDEX_END, XPATH_NODE_INDEX_START, XPATH_PROCESSING_INSTRUCTION_IDENTIFIER, XPATH_SEPARATOR| Modifier | Constructor and Description |
|---|---|
protected |
XMLAssert() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertNodeTestPasses(org.xml.sax.InputSource xml,
NodeTester tester,
short nodeType)
Execute a
NodeTest |
static void |
assertNodeTestPasses(NodeTest test,
NodeTester tester,
short[] nodeTypes,
boolean assertion)
Execute a
NodeTest |
static void |
assertNodeTestPasses(java.lang.String xmlString,
NodeTester tester,
short nodeType)
Execute a
NodeTest |
static void |
assertXMLEqual(Diff diff,
boolean assertion)
Assert that the result of an XML comparison is or is not similar.
|
static void |
assertXMLEqual(org.w3c.dom.Document control,
org.w3c.dom.Document test)
Assert that two XML documents are similar
|
static void |
assertXMLEqual(org.xml.sax.InputSource control,
org.xml.sax.InputSource test)
Assert that two XML documents are similar
|
static void |
assertXMLEqual(java.io.Reader control,
java.io.Reader test)
Assert that two XML documents are similar
|
static void |
assertXMLEqual(java.lang.String msg,
Diff diff,
boolean assertion)
Assert that the result of an XML comparison is or is not similar.
|
static void |
assertXMLEqual(java.lang.String err,
org.w3c.dom.Document control,
org.w3c.dom.Document test)
Assert that two XML documents are similar
|
static void |
assertXMLEqual(java.lang.String err,
org.xml.sax.InputSource control,
org.xml.sax.InputSource test)
Assert that two XML documents are similar
|
static void |
assertXMLEqual(java.lang.String err,
java.io.Reader control,
java.io.Reader test)
Assert that two XML documents are similar
|
static void |
assertXMLEqual(java.lang.String control,
java.lang.String test)
Assert that two XML documents are similar
|
static void |
assertXMLEqual(java.lang.String err,
java.lang.String control,
java.lang.String test)
Assert that two XML documents are similar
|
static void |
assertXMLIdentical(Diff diff,
boolean assertion)
Assert that the result of an XML comparison is or is not identical
|
static void |
assertXMLIdentical(java.lang.String msg,
Diff diff,
boolean assertion)
Assert that the result of an XML comparison is or is not identical
|
static void |
assertXMLNotEqual(org.w3c.dom.Document control,
org.w3c.dom.Document test)
Assert that two XML documents are NOT similar
|
static void |
assertXMLNotEqual(org.xml.sax.InputSource control,
org.xml.sax.InputSource test)
Assert that two XML documents are NOT similar
|
static void |
assertXMLNotEqual(java.io.Reader control,
java.io.Reader test)
Assert that two XML documents are NOT similar
|
static void |
assertXMLNotEqual(java.lang.String err,
org.w3c.dom.Document control,
org.w3c.dom.Document test)
Assert that two XML documents are NOT similar
|
static void |
assertXMLNotEqual(java.lang.String err,
org.xml.sax.InputSource control,
org.xml.sax.InputSource test)
Assert that two XML documents are NOT similar
|
static void |
assertXMLNotEqual(java.lang.String err,
java.io.Reader control,
java.io.Reader test)
Assert that two XML documents are NOT similar
|
static void |
assertXMLNotEqual(java.lang.String control,
java.lang.String test)
Assert that two XML documents are NOT similar
|
static void |
assertXMLNotEqual(java.lang.String err,
java.lang.String control,
java.lang.String test)
Assert that two XML documents are NOT similar
|
static void |
assertXMLValid(org.xml.sax.InputSource xml)
Assert that an InputSource containing XML contains valid XML:
the document must contain a DOCTYPE declaration to be validated
|
static void |
assertXMLValid(org.xml.sax.InputSource xml,
java.lang.String systemId)
Assert that an InputSource containing XML contains valid XML:
the document must contain a DOCTYPE to be validated, but the
validation will use the systemId to obtain the DTD
|
static void |
assertXMLValid(org.xml.sax.InputSource xml,
java.lang.String systemId,
java.lang.String doctype)
Assert that a piece of XML contains valid XML: the document
will be given a DOCTYPE to be validated with the name and
systemId specified regardless of whether it already contains a
doctype declaration.
|
static void |
assertXMLValid(java.lang.String xmlString)
Assert that a String containing XML contains valid XML: the String must
contain a DOCTYPE declaration to be validated
|
static void |
assertXMLValid(java.lang.String xmlString,
java.lang.String systemId)
Assert that a String containing XML contains valid XML: the String must
contain a DOCTYPE to be validated, but the validation will use the
systemId to obtain the DTD
|
static void |
assertXMLValid(java.lang.String xmlString,
java.lang.String systemId,
java.lang.String doctype)
Assert that a String containing XML contains valid XML: the String will
be given a DOCTYPE to be validated with the name and systemId specified
regardless of whether it already contains a doctype declaration.
|
static void |
assertXMLValid(Validator validator)
Assert that a Validator instance returns
isValid() == true |
static void |
assertXpathEvaluatesTo(QualifiedName expectedValue,
java.lang.String xpathExpression,
org.w3c.dom.Document inDocument)
Assert the value of an Xpath expression in an DOM Document
|
static void |
assertXpathEvaluatesTo(QualifiedName expectedValue,
java.lang.String xpathExpression,
org.xml.sax.InputSource control)
Assert the value of an Xpath expression in an XML document.
|
static void |
assertXpathEvaluatesTo(QualifiedName expectedValue,
java.lang.String xpathExpression,
java.lang.String inXMLString)
Assert the value of an Xpath expression in an XML String
|
static void |
assertXpathEvaluatesTo(java.lang.String expectedValue,
java.lang.String xpathExpression,
org.w3c.dom.Document inDocument)
Assert the value of an Xpath expression in an DOM Document
|
static void |
assertXpathEvaluatesTo(java.lang.String expectedValue,
java.lang.String xpathExpression,
org.xml.sax.InputSource control)
Assert the value of an Xpath expression in an XML document.
|
static void |
assertXpathEvaluatesTo(java.lang.String expectedValue,
java.lang.String xpathExpression,
java.lang.String inXMLString)
Assert the value of an Xpath expression in an XML String
|
static void |
assertXpathExists(java.lang.String xPathExpression,
org.w3c.dom.Document inDocument)
Assert that a specific XPath exists in some given XML
|
static void |
assertXpathExists(java.lang.String xPathExpression,
org.xml.sax.InputSource control)
Assert that a specific XPath exists in some given XML
|
static void |
assertXpathExists(java.lang.String xPathExpression,
java.lang.String inXMLString)
Assert that a specific XPath exists in some given XML
|
static void |
assertXpathNotExists(java.lang.String xPathExpression,
org.w3c.dom.Document inDocument)
Assert that a specific XPath does NOT exist in some given XML
|
static void |
assertXpathNotExists(java.lang.String xPathExpression,
org.xml.sax.InputSource control)
Assert that a specific XPath does NOT exist in some given XML
|
static void |
assertXpathNotExists(java.lang.String xPathExpression,
java.lang.String inXMLString)
Assert that a specific XPath does NOT exist in some given XML
|
static void |
assertXpathsEqual(java.lang.String controlXpath,
org.w3c.dom.Document controlDocument,
java.lang.String testXpath,
org.w3c.dom.Document testDocument)
Assert that the node lists of two Xpaths in two documents are equal
|
static void |
assertXpathsEqual(java.lang.String controlXpath,
org.xml.sax.InputSource controlDocument,
java.lang.String testXpath,
org.xml.sax.InputSource testDocument)
Assert that the node lists of two Xpaths in two documents are equal
|
static void |
assertXpathsEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.w3c.dom.Document document)
Assert that the node lists of two Xpaths in the same document are equal
|
static void |
assertXpathsEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.xml.sax.InputSource document)
Assert that the node lists of two Xpaths in the same document are equal
|
static void |
assertXpathsEqual(java.lang.String controlXpath,
java.lang.String testXpath,
java.lang.String inXMLString)
Assert that the node lists of two Xpaths in the same XML string are
equal
|
static void |
assertXpathsEqual(java.lang.String controlXpath,
java.lang.String inControlXMLString,
java.lang.String testXpath,
java.lang.String inTestXMLString)
Assert that the node lists of two Xpaths in two XML strings are equal
|
static void |
assertXpathsNotEqual(java.lang.String controlXpath,
org.w3c.dom.Document controlDocument,
java.lang.String testXpath,
org.w3c.dom.Document testDocument)
Assert that the node lists of two Xpaths in two documents are NOT equal
|
static void |
assertXpathsNotEqual(java.lang.String controlXpath,
org.xml.sax.InputSource controlDocument,
java.lang.String testXpath,
org.xml.sax.InputSource testDocument)
Assert that the node lists of two Xpaths in two XML strings are
NOT equal
|
static void |
assertXpathsNotEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.w3c.dom.Document document)
Assert that the node lists of two Xpaths in the same document are NOT equal
|
static void |
assertXpathsNotEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.xml.sax.InputSource document)
Assert that the node lists of two Xpaths in the same document are NOT equal
|
static void |
assertXpathsNotEqual(java.lang.String controlXpath,
java.lang.String testXpath,
java.lang.String inXMLString)
Assert that the node lists of two Xpaths in the same XML string are NOT
equal
|
static void |
assertXpathsNotEqual(java.lang.String controlXpath,
java.lang.String inControlXMLString,
java.lang.String testXpath,
java.lang.String inTestXMLString)
Assert that the node lists of two Xpaths in two XML strings are NOT equal
|
static void |
assertXpathValuesEqual(java.lang.String controlXpath,
org.w3c.dom.Document controlDocument,
java.lang.String testXpath,
org.w3c.dom.Document testDocument)
Assert that the evaluation of two Xpaths in two documents are equal
|
static void |
assertXpathValuesEqual(java.lang.String controlXpath,
org.xml.sax.InputSource control,
java.lang.String testXpath,
org.xml.sax.InputSource test)
Assert that the evaluation of two Xpaths in two XML strings are equal
|
static void |
assertXpathValuesEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.w3c.dom.Document document)
Assert that the evaluation of two Xpaths in the same document are equal
|
static void |
assertXpathValuesEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.xml.sax.InputSource document)
Assert that the evaluation of two Xpaths in the same XML string are
equal
|
static void |
assertXpathValuesEqual(java.lang.String controlXpath,
java.lang.String testXpath,
java.lang.String inXMLString)
Assert that the evaluation of two Xpaths in the same XML string are
equal
|
static void |
assertXpathValuesEqual(java.lang.String controlXpath,
java.lang.String inControlXMLString,
java.lang.String testXpath,
java.lang.String inTestXMLString)
Assert that the evaluation of two Xpaths in two XML strings are equal
|
static void |
assertXpathValuesNotEqual(java.lang.String controlXpath,
org.w3c.dom.Document controlDocument,
java.lang.String testXpath,
org.w3c.dom.Document testDocument)
Assert that the evaluation of two Xpaths in two documents are
NOT equal
|
static void |
assertXpathValuesNotEqual(java.lang.String controlXpath,
org.xml.sax.InputSource control,
java.lang.String testXpath,
org.xml.sax.InputSource test)
Assert that the evaluation of two Xpaths in two XML strings are
NOT equal
|
static void |
assertXpathValuesNotEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.w3c.dom.Document document)
Assert that the evaluation of two Xpaths in the same document are
NOT equal
|
static void |
assertXpathValuesNotEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.xml.sax.InputSource control)
Assert that the evaluation of two Xpaths in the same XML string are
NOT equal
|
static void |
assertXpathValuesNotEqual(java.lang.String controlXpath,
java.lang.String testXpath,
java.lang.String inXMLString)
Assert that the evaluation of two Xpaths in the same XML string are
NOT equal
|
static void |
assertXpathValuesNotEqual(java.lang.String controlXpath,
java.lang.String inControlXMLString,
java.lang.String testXpath,
java.lang.String inTestXMLString)
Assert that the evaluation of two Xpaths in two XML strings are
NOT equal
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSamepublic static void assertXMLEqual(Diff diff, boolean assertion)
diff - the result of an XML comparisonassertion - true if asserting that result is similarpublic static void assertXMLEqual(java.lang.String msg,
Diff diff,
boolean assertion)
msg - additional message to display if assertion failsdiff - the result of an XML comparisonassertion - true if asserting that result is similarpublic static void assertXMLIdentical(Diff diff, boolean assertion)
diff - the result of an XML comparisonassertion - true if asserting that result is identicalpublic static void assertXMLIdentical(java.lang.String msg,
Diff diff,
boolean assertion)
msg - Message to display if assertion failsdiff - the result of an XML comparisonassertion - true if asserting that result is identicalpublic static void assertXMLEqual(org.xml.sax.InputSource control,
org.xml.sax.InputSource test)
throws org.xml.sax.SAXException,
java.io.IOException
control - XML to be compared againsttest - XML to be testedorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic static void assertXMLEqual(java.lang.String control,
java.lang.String test)
throws org.xml.sax.SAXException,
java.io.IOException
control - XML to be compared againsttest - XML to be testedorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic static void assertXMLEqual(org.w3c.dom.Document control,
org.w3c.dom.Document test)
control - XML to be compared againsttest - XML to be testedpublic static void assertXMLEqual(java.io.Reader control,
java.io.Reader test)
throws org.xml.sax.SAXException,
java.io.IOException
control - XML to be compared againsttest - XML to be testedorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic static void assertXMLEqual(java.lang.String err,
org.xml.sax.InputSource control,
org.xml.sax.InputSource test)
throws org.xml.sax.SAXException,
java.io.IOException
err - Message to be displayed on assertion failurecontrol - XML to be compared againsttest - XML to be testedorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic static void assertXMLEqual(java.lang.String err,
java.lang.String control,
java.lang.String test)
throws org.xml.sax.SAXException,
java.io.IOException
err - Message to be displayed on assertion failurecontrol - XML to be compared againsttest - XML to be testedorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic static void assertXMLEqual(java.lang.String err,
org.w3c.dom.Document control,
org.w3c.dom.Document test)
err - Message to be displayed on assertion failurecontrol - XML to be compared againsttest - XML to be testedpublic static void assertXMLEqual(java.lang.String err,
java.io.Reader control,
java.io.Reader test)
throws org.xml.sax.SAXException,
java.io.IOException
err - Message to be displayed on assertion failurecontrol - XML to be compared againsttest - XML to be testedorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic static void assertXMLNotEqual(org.xml.sax.InputSource control,
org.xml.sax.InputSource test)
throws org.xml.sax.SAXException,
java.io.IOException
control - XML to be compared againsttest - XML to be testedorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic static void assertXMLNotEqual(java.lang.String control,
java.lang.String test)
throws org.xml.sax.SAXException,
java.io.IOException
control - XML to be compared againsttest - XML to be testedorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic static void assertXMLNotEqual(org.w3c.dom.Document control,
org.w3c.dom.Document test)
control - XML to be compared againsttest - XML to be testedpublic static void assertXMLNotEqual(java.io.Reader control,
java.io.Reader test)
throws org.xml.sax.SAXException,
java.io.IOException
control - XML to be compared againsttest - XML to be testedorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic static void assertXMLNotEqual(java.lang.String err,
org.xml.sax.InputSource control,
org.xml.sax.InputSource test)
throws org.xml.sax.SAXException,
java.io.IOException
err - Message to be displayed on assertion failurecontrol - XML to be compared againsttest - XML to be testedorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic static void assertXMLNotEqual(java.lang.String err,
java.lang.String control,
java.lang.String test)
throws org.xml.sax.SAXException,
java.io.IOException
err - Message to be displayed on assertion failurecontrol - XML to be compared againsttest - XML to be testedorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic static void assertXMLNotEqual(java.lang.String err,
org.w3c.dom.Document control,
org.w3c.dom.Document test)
err - Message to be displayed on assertion failurecontrol - XML to be compared againsttest - XML to be testedpublic static void assertXMLNotEqual(java.lang.String err,
java.io.Reader control,
java.io.Reader test)
throws org.xml.sax.SAXException,
java.io.IOException
err - Message to be displayed on assertion failurecontrol - XML to be compared againsttest - XML to be testedorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic static void assertXpathsEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.w3c.dom.Document document)
throws XpathException
xpathOne - xpathTwo - document - XpathExceptionXpathEnginepublic static void assertXpathsEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.xml.sax.InputSource document)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - xpathTwo - document - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionXpathEnginepublic static void assertXpathsEqual(java.lang.String controlXpath,
java.lang.String testXpath,
java.lang.String inXMLString)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - xpathTwo - inXMLString - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionpublic static void assertXpathsEqual(java.lang.String controlXpath,
org.xml.sax.InputSource controlDocument,
java.lang.String testXpath,
org.xml.sax.InputSource testDocument)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - xpathTwo - controlDocument - testDocument - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionXpathEnginepublic static void assertXpathsEqual(java.lang.String controlXpath,
java.lang.String inControlXMLString,
java.lang.String testXpath,
java.lang.String inTestXMLString)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - inControlXMLString - xpathTwo - inTestXMLString - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionpublic static void assertXpathsEqual(java.lang.String controlXpath,
org.w3c.dom.Document controlDocument,
java.lang.String testXpath,
org.w3c.dom.Document testDocument)
throws XpathException
xpathOne - xpathTwo - controlDocument - testDocument - XpathExceptionXpathEnginepublic static void assertXpathsNotEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.w3c.dom.Document document)
throws XpathException
xpathOne - xpathTwo - document - XpathExceptionXpathEnginepublic static void assertXpathsNotEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.xml.sax.InputSource document)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - xpathTwo - document - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionXpathEnginepublic static void assertXpathsNotEqual(java.lang.String controlXpath,
java.lang.String testXpath,
java.lang.String inXMLString)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - xpathTwo - inXMLString - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionpublic static void assertXpathsNotEqual(java.lang.String controlXpath,
java.lang.String inControlXMLString,
java.lang.String testXpath,
java.lang.String inTestXMLString)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - inControlXMLString - xpathTwo - inTestXMLString - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionpublic static void assertXpathsNotEqual(java.lang.String controlXpath,
org.xml.sax.InputSource controlDocument,
java.lang.String testXpath,
org.xml.sax.InputSource testDocument)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - controlDocument - xpathTwo - testDocument - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionpublic static void assertXpathsNotEqual(java.lang.String controlXpath,
org.w3c.dom.Document controlDocument,
java.lang.String testXpath,
org.w3c.dom.Document testDocument)
throws XpathException
xpathOne - xpathTwo - document - XpathExceptionXpathEnginepublic static void assertXpathValuesEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.w3c.dom.Document document)
throws XpathException
xpathOne - xpathTwo - document - XpathExceptionXpathEnginepublic static void assertXpathValuesEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.xml.sax.InputSource document)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - xpathTwo - document - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionpublic static void assertXpathValuesEqual(java.lang.String controlXpath,
java.lang.String testXpath,
java.lang.String inXMLString)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - xpathTwo - inXMLString - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionpublic static void assertXpathValuesEqual(java.lang.String controlXpath,
org.xml.sax.InputSource control,
java.lang.String testXpath,
org.xml.sax.InputSource test)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - control - xpathTwo - test - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionpublic static void assertXpathValuesEqual(java.lang.String controlXpath,
java.lang.String inControlXMLString,
java.lang.String testXpath,
java.lang.String inTestXMLString)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - inControlXMLString - xpathTwo - inTestXMLString - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionpublic static void assertXpathValuesEqual(java.lang.String controlXpath,
org.w3c.dom.Document controlDocument,
java.lang.String testXpath,
org.w3c.dom.Document testDocument)
throws XpathException
xpathOne - xpathTwo - document - XpathExceptionXpathEnginepublic static void assertXpathValuesNotEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.xml.sax.InputSource control)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - xpathTwo - control - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionpublic static void assertXpathValuesNotEqual(java.lang.String controlXpath,
java.lang.String testXpath,
java.lang.String inXMLString)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - xpathTwo - inXMLString - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionpublic static void assertXpathValuesNotEqual(java.lang.String controlXpath,
java.lang.String testXpath,
org.w3c.dom.Document document)
throws XpathException
xpathOne - xpathTwo - document - XpathExceptionpublic static void assertXpathValuesNotEqual(java.lang.String controlXpath,
org.xml.sax.InputSource control,
java.lang.String testXpath,
org.xml.sax.InputSource test)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - control - xpathTwo - test - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionpublic static void assertXpathValuesNotEqual(java.lang.String controlXpath,
java.lang.String inControlXMLString,
java.lang.String testXpath,
java.lang.String inTestXMLString)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
xpathOne - inControlXMLString - xpathTwo - inTestXMLString - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionpublic static void assertXpathValuesNotEqual(java.lang.String controlXpath,
org.w3c.dom.Document controlDocument,
java.lang.String testXpath,
org.w3c.dom.Document testDocument)
throws XpathException
xpathOne - xpathTwo - document - XpathExceptionpublic static void assertXpathEvaluatesTo(java.lang.String expectedValue,
java.lang.String xpathExpression,
org.xml.sax.InputSource control)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
expectedValue - xpathExpression - control - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionwhich provides the underlying evaluation mechanismpublic static void assertXpathEvaluatesTo(java.lang.String expectedValue,
java.lang.String xpathExpression,
java.lang.String inXMLString)
throws org.xml.sax.SAXException,
java.io.IOException,
XpathException
expectedValue - xpathExpression - inXMLString - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionwhich provides the underlying evaluation mechanismpublic static void assertXpathEvaluatesTo(java.lang.String expectedValue,
java.lang.String xpathExpression,
org.w3c.dom.Document inDocument)
throws XpathException
expectedValue - xpathExpression - inDocument - XpathExceptionwhich provides the underlying evaluation mechanismpublic static void assertXpathEvaluatesTo(QualifiedName expectedValue, java.lang.String xpathExpression, org.xml.sax.InputSource control) throws org.xml.sax.SAXException, java.io.IOException, XpathException
expectedValue - xpathExpression - control - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionwhich provides the underlying evaluation mechanismpublic static void assertXpathEvaluatesTo(QualifiedName expectedValue, java.lang.String xpathExpression, java.lang.String inXMLString) throws org.xml.sax.SAXException, java.io.IOException, XpathException
expectedValue - xpathExpression - inXMLString - org.xml.sax.SAXExceptionjava.io.IOExceptionXpathExceptionwhich provides the underlying evaluation mechanismpublic static void assertXpathEvaluatesTo(QualifiedName expectedValue, java.lang.String xpathExpression, org.w3c.dom.Document inDocument) throws XpathException
expectedValue - xpathExpression - inDocument - XpathExceptionwhich provides the underlying evaluation mechanismpublic static void assertXpathExists(java.lang.String xPathExpression,
org.xml.sax.InputSource control)
throws java.io.IOException,
org.xml.sax.SAXException,
XpathException
inXpathExpression - control - java.io.IOExceptionorg.xml.sax.SAXExceptionXpathExceptionwhich provides the underlying evaluation mechanismpublic static void assertXpathExists(java.lang.String xPathExpression,
java.lang.String inXMLString)
throws java.io.IOException,
org.xml.sax.SAXException,
XpathException
inXpathExpression - inXMLString - java.io.IOExceptionorg.xml.sax.SAXExceptionXpathExceptionwhich provides the underlying evaluation mechanismpublic static void assertXpathExists(java.lang.String xPathExpression,
org.w3c.dom.Document inDocument)
throws XpathException
inXpathExpression - inDocument - XpathExceptionwhich provides the underlying evaluation mechanismpublic static void assertXpathNotExists(java.lang.String xPathExpression,
org.xml.sax.InputSource control)
throws java.io.IOException,
org.xml.sax.SAXException,
XpathException
inXpathExpression - control - java.io.IOExceptionorg.xml.sax.SAXExceptionXpathExceptionwhich provides the underlying evaluation mechanismpublic static void assertXpathNotExists(java.lang.String xPathExpression,
java.lang.String inXMLString)
throws java.io.IOException,
org.xml.sax.SAXException,
XpathException
inXpathExpression - inXMLString - java.io.IOExceptionorg.xml.sax.SAXExceptionXpathExceptionwhich provides the underlying evaluation mechanismpublic static void assertXpathNotExists(java.lang.String xPathExpression,
org.w3c.dom.Document inDocument)
throws XpathException
inXpathExpression - inDocument - XpathExceptionwhich provides the underlying evaluation mechanismpublic static void assertXMLValid(org.xml.sax.InputSource xml)
throws org.xml.sax.SAXException,
ConfigurationException
xml - org.xml.sax.SAXExceptionConfigurationException - if validation could not be turned onValidatorpublic static void assertXMLValid(java.lang.String xmlString)
throws org.xml.sax.SAXException,
ConfigurationException
xmlString - org.xml.sax.SAXExceptionConfigurationException - if validation could not be turned onValidatorpublic static void assertXMLValid(org.xml.sax.InputSource xml,
java.lang.String systemId)
throws org.xml.sax.SAXException,
ConfigurationException
xml - systemId - org.xml.sax.SAXExceptionConfigurationException - if validation could not be turned onValidatorpublic static void assertXMLValid(java.lang.String xmlString,
java.lang.String systemId)
throws org.xml.sax.SAXException,
ConfigurationException
xmlString - systemId - org.xml.sax.SAXExceptionConfigurationException - if validation could not be turned onValidatorpublic static void assertXMLValid(org.xml.sax.InputSource xml,
java.lang.String systemId,
java.lang.String doctype)
throws org.xml.sax.SAXException,
ConfigurationException
xml - systemId - doctype - org.xml.sax.SAXExceptionConfigurationException - if validation could not be turned onValidatorpublic static void assertXMLValid(java.lang.String xmlString,
java.lang.String systemId,
java.lang.String doctype)
throws org.xml.sax.SAXException,
ConfigurationException
xmlString - systemId - doctype - org.xml.sax.SAXExceptionConfigurationException - if validation could not be turned onValidatorpublic static void assertXMLValid(Validator validator)
isValid() == truevalidator - public static void assertNodeTestPasses(org.xml.sax.InputSource xml,
NodeTester tester,
short nodeType)
throws org.xml.sax.SAXException,
java.io.IOException
NodeTest for a single node type
and assert that it passesxml - XML to be testedtester - The test strategynodeType - The node type to be tested: constants defined
in org.w3c.dom.Node e.g. Node.ELEMENT_NODEorg.xml.sax.SAXExceptionjava.io.IOExceptionAbstractNodeTester,
CountingNodeTesterpublic static void assertNodeTestPasses(java.lang.String xmlString,
NodeTester tester,
short nodeType)
throws org.xml.sax.SAXException,
java.io.IOException
NodeTest for a single node type
and assert that it passesxmlString - XML to be testedtester - The test strategynodeType - The node type to be tested: constants defined
in org.w3c.dom.Node e.g. Node.ELEMENT_NODEorg.xml.sax.SAXExceptionjava.io.IOExceptionAbstractNodeTester,
CountingNodeTesterpublic static void assertNodeTestPasses(NodeTest test, NodeTester tester, short[] nodeTypes, boolean assertion)
NodeTest for multiple node types and make an
assertion about it whether it is expected to passtest - a NodeTest instance containing the XML source to be testedtester - The test strategynodeTypes - The node types to be tested: constants defined
in org.w3c.dom.Node e.g. Node.ELEMENT_NODEassertion - true if the test is expected to pass, false otherwiseAbstractNodeTester,
CountingNodeTester