Java Doc for XMLAssert.java in  » Testing » XMLUnit » org » custommonkey » xmlunit » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » XMLUnit » org.custommonkey.xmlunit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.custommonkey.xmlunit.XMLAssert

XMLAssert
public class XMLAssert extends Assert implements XSLTConstants(Code)
Collection of static methods so that XML assertion facilities are available in any class, not just test suites. Thanks to Andrew McCormick and others for suggesting this refactoring.
Available assertion methods are:
  • assertXMLEqual
    assert that two pieces of XML markup are similar
  • assertXMLNotEqual
    assert that two pieces of XML markup are different
  • assertXMLIdentical
    assert that two pieces of XML markup are identical. In most cases this assertion is too strong and assertXMLEqual is sufficient
  • assertXpathExists
    assert that an XPath expression matches at least one node
  • assertXpathNotExists
    assert that an XPath expression does not match any nodes
  • assertXpathsEqual
    assert that the nodes obtained by executing two Xpaths are similar
  • assertXpathsNotEqual
    assert that the nodes obtained by executing two Xpaths are different
  • assertXpathValuesEqual
    assert that the flattened String obtained by executing two Xpaths are similar
  • assertXpathValuesNotEqual
    assert that the flattened String obtained by executing two Xpaths are different
  • assertXpathEvaluatesTo
    assert that the flattened String obtained by executing an Xpath is a particular value
  • assertXMLValid
    assert that a piece of XML markup is valid with respect to a DTD: either by using the markup's own DTD or a different DTD
  • assertNodeTestPasses
    assert that a piece of XML markup passes a NodeTest NodeTest
All underlying similarity and difference testing is done using Diff Diff instances which can be instantiated and evaluated independently of this class.
See Also:   Diff.similar
See Also:   Diff.identical
See Also:   
Examples and more at xmlunit.sourceforge.net



Constructor Summary
protected  XMLAssert()
    

Method Summary
public static  voidassertNodeTestPasses(InputSource xml, NodeTester tester, short nodeType)
     Execute a NodeTest for a single node type and assert that it passes
Parameters:
  xml - XML to be tested
Parameters:
  tester - The test strategy
Parameters:
  nodeType - The node type to be tested: constants definedin Node org.w3c.dom.Node e.g.
public static  voidassertNodeTestPasses(String xmlString, NodeTester tester, short nodeType)
     Execute a NodeTest for a single node type and assert that it passes
Parameters:
  xmlString - XML to be tested
Parameters:
  tester - The test strategy
Parameters:
  nodeType - The node type to be tested: constants definedin Node org.w3c.dom.Node e.g.
public static  voidassertNodeTestPasses(NodeTest test, NodeTester tester, short[] nodeTypes, boolean assertion)
     Execute a NodeTest for multiple node types and make an assertion about it whether it is expected to pass
Parameters:
  test - a NodeTest instance containing the XML source to be tested
Parameters:
  tester - The test strategy
Parameters:
  nodeTypes - The node types to be tested: constants definedin Node org.w3c.dom.Node e.g.
public static  voidassertXMLEqual(Diff diff, boolean assertion)
     Assert that the result of an XML comparison is or is not similar.
public static  voidassertXMLEqual(String msg, Diff diff, boolean assertion)
     Assert that the result of an XML comparison is or is not similar.
public static  voidassertXMLEqual(InputSource control, InputSource test)
    
public static  voidassertXMLEqual(String control, String test)
    
public static  voidassertXMLEqual(Document control, Document test)
    
public static  voidassertXMLEqual(Reader control, Reader test)
    
public static  voidassertXMLEqual(String err, InputSource control, InputSource test)
    
public static  voidassertXMLEqual(String err, String control, String test)
    
public static  voidassertXMLEqual(String err, Document control, Document test)
    
public static  voidassertXMLEqual(String err, Reader control, Reader test)
    
public static  voidassertXMLIdentical(Diff diff, boolean assertion)
    
public static  voidassertXMLIdentical(String msg, Diff diff, boolean assertion)
    
public static  voidassertXMLNotEqual(InputSource control, InputSource test)
    
public static  voidassertXMLNotEqual(String control, String test)
    
public static  voidassertXMLNotEqual(Document control, Document test)
    
public static  voidassertXMLNotEqual(Reader control, Reader test)
    
public static  voidassertXMLNotEqual(String err, InputSource control, InputSource test)
    
public static  voidassertXMLNotEqual(String err, String control, String test)
    
public static  voidassertXMLNotEqual(String err, Document control, Document test)
    
public static  voidassertXMLNotEqual(String err, Reader control, Reader test)
    
public static  voidassertXMLValid(InputSource xml)
    
public static  voidassertXMLValid(String xmlString)
    
public static  voidassertXMLValid(InputSource xml, String systemId)
    
public static  voidassertXMLValid(String xmlString, String systemId)
    
public static  voidassertXMLValid(InputSource xml, String systemId, 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.
public static  voidassertXMLValid(String xmlString, String systemId, 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.
public static  voidassertXMLValid(Validator validator)
    
public static  voidassertXpathEvaluatesTo(String expectedValue, String xpathExpression, InputSource control)
     Assert the value of an Xpath expression in an XML document.
public static  voidassertXpathEvaluatesTo(String expectedValue, String xpathExpression, String inXMLString)
    
public static  voidassertXpathEvaluatesTo(String expectedValue, String xpathExpression, Document inDocument)
    
public static  voidassertXpathExists(String xPathExpression, InputSource control)
    
public static  voidassertXpathExists(String xPathExpression, String inXMLString)
    
public static  voidassertXpathExists(String xPathExpression, Document inDocument)
    
public static  voidassertXpathNotExists(String xPathExpression, InputSource control)
    
public static  voidassertXpathNotExists(String xPathExpression, String inXMLString)
    
public static  voidassertXpathNotExists(String xPathExpression, Document inDocument)
    
public static  voidassertXpathValuesEqual(String controlXpath, String testXpath, Document document)
    
public static  voidassertXpathValuesEqual(String controlXpath, String testXpath, InputSource document)
    
public static  voidassertXpathValuesEqual(String controlXpath, String testXpath, String inXMLString)
    
public static  voidassertXpathValuesEqual(String controlXpath, InputSource control, String testXpath, InputSource test)
    
public static  voidassertXpathValuesEqual(String controlXpath, String inControlXMLString, String testXpath, String inTestXMLString)
    
public static  voidassertXpathValuesEqual(String controlXpath, Document controlDocument, String testXpath, Document testDocument)
    
public static  voidassertXpathValuesNotEqual(String controlXpath, String testXpath, InputSource control)
    
public static  voidassertXpathValuesNotEqual(String controlXpath, String testXpath, String inXMLString)
    
public static  voidassertXpathValuesNotEqual(String controlXpath, String testXpath, Document document)
    
public static  voidassertXpathValuesNotEqual(String controlXpath, InputSource control, String testXpath, InputSource test)
    
public static  voidassertXpathValuesNotEqual(String controlXpath, String inControlXMLString, String testXpath, String inTestXMLString)
    
public static  voidassertXpathValuesNotEqual(String controlXpath, Document controlDocument, String testXpath, Document testDocument)
    
public static  voidassertXpathsEqual(String controlXpath, String testXpath, Document document)
    
public static  voidassertXpathsEqual(String controlXpath, String testXpath, InputSource document)
    
public static  voidassertXpathsEqual(String controlXpath, String testXpath, String inXMLString)
    
public static  voidassertXpathsEqual(String controlXpath, InputSource controlDocument, String testXpath, InputSource testDocument)
    
public static  voidassertXpathsEqual(String controlXpath, String inControlXMLString, String testXpath, String inTestXMLString)
    
public static  voidassertXpathsEqual(String controlXpath, Document controlDocument, String testXpath, Document testDocument)
    
public static  voidassertXpathsNotEqual(String controlXpath, String testXpath, Document document)
    
public static  voidassertXpathsNotEqual(String controlXpath, String testXpath, InputSource document)
    
public static  voidassertXpathsNotEqual(String controlXpath, String testXpath, String inXMLString)
    
public static  voidassertXpathsNotEqual(String controlXpath, String inControlXMLString, String testXpath, String inTestXMLString)
    
public static  voidassertXpathsNotEqual(String controlXpath, InputSource controlDocument, String testXpath, InputSource testDocument)
    
public static  voidassertXpathsNotEqual(String controlXpath, Document controlDocument, String testXpath, Document testDocument)
    


Constructor Detail
XMLAssert
protected XMLAssert()(Code)




Method Detail
assertNodeTestPasses
public static void assertNodeTestPasses(InputSource xml, NodeTester tester, short nodeType) throws SAXException, IOException(Code)
Execute a NodeTest for a single node type and assert that it passes
Parameters:
  xml - XML to be tested
Parameters:
  tester - The test strategy
Parameters:
  nodeType - The node type to be tested: constants definedin Node org.w3c.dom.Node e.g. Node.ELEMENT_NODE
throws:
  SAXException -
throws:
  IOException -
See Also:   AbstractNodeTester
See Also:   CountingNodeTester



assertNodeTestPasses
public static void assertNodeTestPasses(String xmlString, NodeTester tester, short nodeType) throws SAXException, IOException(Code)
Execute a NodeTest for a single node type and assert that it passes
Parameters:
  xmlString - XML to be tested
Parameters:
  tester - The test strategy
Parameters:
  nodeType - The node type to be tested: constants definedin Node org.w3c.dom.Node e.g. Node.ELEMENT_NODE
throws:
  SAXException -
throws:
  IOException -
See Also:   AbstractNodeTester
See Also:   CountingNodeTester



assertNodeTestPasses
public static void assertNodeTestPasses(NodeTest test, NodeTester tester, short[] nodeTypes, boolean assertion)(Code)
Execute a NodeTest for multiple node types and make an assertion about it whether it is expected to pass
Parameters:
  test - a NodeTest instance containing the XML source to be tested
Parameters:
  tester - The test strategy
Parameters:
  nodeTypes - The node types to be tested: constants definedin Node org.w3c.dom.Node e.g. Node.ELEMENT_NODE
Parameters:
  assertion - true if the test is expected to pass, false otherwise
See Also:   AbstractNodeTester
See Also:   CountingNodeTester



assertXMLEqual
public static void assertXMLEqual(Diff diff, boolean assertion)(Code)
Assert that the result of an XML comparison is or is not similar.
Parameters:
  diff - the result of an XML comparison
Parameters:
  assertion - true if asserting that result is similar



assertXMLEqual
public static void assertXMLEqual(String msg, Diff diff, boolean assertion)(Code)
Assert that the result of an XML comparison is or is not similar.
Parameters:
  msg - additional message to display if assertion fails
Parameters:
  diff - the result of an XML comparison
Parameters:
  assertion - true if asserting that result is similar



assertXMLEqual
public static void assertXMLEqual(InputSource control, InputSource test) throws SAXException, IOException(Code)
Assert that two XML documents are similar
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested
throws:
  SAXException -
throws:
  IOException -



assertXMLEqual
public static void assertXMLEqual(String control, String test) throws SAXException, IOException(Code)
Assert that two XML documents are similar
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested
throws:
  SAXException -
throws:
  IOException -



assertXMLEqual
public static void assertXMLEqual(Document control, Document test)(Code)
Assert that two XML documents are similar
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested



assertXMLEqual
public static void assertXMLEqual(Reader control, Reader test) throws SAXException, IOException(Code)
Assert that two XML documents are similar
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested
throws:
  SAXException -
throws:
  IOException -



assertXMLEqual
public static void assertXMLEqual(String err, InputSource control, InputSource test) throws SAXException, IOException(Code)
Assert that two XML documents are similar
Parameters:
  err - Message to be displayed on assertion failure
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested
throws:
  SAXException -
throws:
  IOException -



assertXMLEqual
public static void assertXMLEqual(String err, String control, String test) throws SAXException, IOException(Code)
Assert that two XML documents are similar
Parameters:
  err - Message to be displayed on assertion failure
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested
throws:
  SAXException -
throws:
  IOException -



assertXMLEqual
public static void assertXMLEqual(String err, Document control, Document test)(Code)
Assert that two XML documents are similar
Parameters:
  err - Message to be displayed on assertion failure
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested



assertXMLEqual
public static void assertXMLEqual(String err, Reader control, Reader test) throws SAXException, IOException(Code)
Assert that two XML documents are similar
Parameters:
  err - Message to be displayed on assertion failure
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested
throws:
  SAXException -
throws:
  IOException -



assertXMLIdentical
public static void assertXMLIdentical(Diff diff, boolean assertion)(Code)
Assert that the result of an XML comparison is or is not identical
Parameters:
  diff - the result of an XML comparison
Parameters:
  assertion - true if asserting that result is identical



assertXMLIdentical
public static void assertXMLIdentical(String msg, Diff diff, boolean assertion)(Code)
Assert that the result of an XML comparison is or is not identical
Parameters:
  msg - Message to display if assertion fails
Parameters:
  diff - the result of an XML comparison
Parameters:
  assertion - true if asserting that result is identical



assertXMLNotEqual
public static void assertXMLNotEqual(InputSource control, InputSource test) throws SAXException, IOException(Code)
Assert that two XML documents are NOT similar
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested
throws:
  SAXException -
throws:
  IOException -



assertXMLNotEqual
public static void assertXMLNotEqual(String control, String test) throws SAXException, IOException(Code)
Assert that two XML documents are NOT similar
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested
throws:
  SAXException -
throws:
  IOException -



assertXMLNotEqual
public static void assertXMLNotEqual(Document control, Document test)(Code)
Assert that two XML documents are NOT similar
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested



assertXMLNotEqual
public static void assertXMLNotEqual(Reader control, Reader test) throws SAXException, IOException(Code)
Assert that two XML documents are NOT similar
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested
throws:
  SAXException -
throws:
  IOException -



assertXMLNotEqual
public static void assertXMLNotEqual(String err, InputSource control, InputSource test) throws SAXException, IOException(Code)
Assert that two XML documents are NOT similar
Parameters:
  err - Message to be displayed on assertion failure
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested
throws:
  SAXException -
throws:
  IOException -



assertXMLNotEqual
public static void assertXMLNotEqual(String err, String control, String test) throws SAXException, IOException(Code)
Assert that two XML documents are NOT similar
Parameters:
  err - Message to be displayed on assertion failure
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested
throws:
  SAXException -
throws:
  IOException -



assertXMLNotEqual
public static void assertXMLNotEqual(String err, Document control, Document test)(Code)
Assert that two XML documents are NOT similar
Parameters:
  err - Message to be displayed on assertion failure
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested



assertXMLNotEqual
public static void assertXMLNotEqual(String err, Reader control, Reader test) throws SAXException, IOException(Code)
Assert that two XML documents are NOT similar
Parameters:
  err - Message to be displayed on assertion failure
Parameters:
  control - XML to be compared against
Parameters:
  test - XML to be tested
throws:
  SAXException -
throws:
  IOException -



assertXMLValid
public static void assertXMLValid(InputSource xml) throws SAXException, ConfigurationException(Code)
Assert that an InputSource containing XML contains valid XML: the document must contain a DOCTYPE declaration to be validated
Parameters:
  xml -
throws:
  SAXException -
throws:
  ConfigurationException - if validation could not be turned on
See Also:   Validator



assertXMLValid
public static void assertXMLValid(String xmlString) throws SAXException, ConfigurationException(Code)
Assert that a String containing XML contains valid XML: the String must contain a DOCTYPE declaration to be validated
Parameters:
  xmlString -
throws:
  SAXException -
throws:
  ConfigurationException - if validation could not be turned on
See Also:   Validator



assertXMLValid
public static void assertXMLValid(InputSource xml, String systemId) throws SAXException, ConfigurationException(Code)
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
Parameters:
  xml -
Parameters:
  systemId -
throws:
  SAXException -
throws:
  ConfigurationException - if validation could not be turned on
See Also:   Validator



assertXMLValid
public static void assertXMLValid(String xmlString, String systemId) throws SAXException, ConfigurationException(Code)
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
Parameters:
  xmlString -
Parameters:
  systemId -
throws:
  SAXException -
throws:
  ConfigurationException - if validation could not be turned on
See Also:   Validator



assertXMLValid
public static void assertXMLValid(InputSource xml, String systemId, String doctype) throws SAXException, ConfigurationException(Code)
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.
Parameters:
  xml -
Parameters:
  systemId -
Parameters:
  doctype -
throws:
  SAXException -
throws:
  ConfigurationException - if validation could not be turned on
See Also:   Validator



assertXMLValid
public static void assertXMLValid(String xmlString, String systemId, String doctype) throws SAXException, ConfigurationException(Code)
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.
Parameters:
  xmlString -
Parameters:
  systemId -
Parameters:
  doctype -
throws:
  SAXException -
throws:
  ConfigurationException - if validation could not be turned on
See Also:   Validator



assertXMLValid
public static void assertXMLValid(Validator validator)(Code)
Assert that a Validator instance returns isValid() == true
Parameters:
  validator -



assertXpathEvaluatesTo
public static void assertXpathEvaluatesTo(String expectedValue, String xpathExpression, InputSource control) throws SAXException, IOException, XpathException(Code)
Assert the value of an Xpath expression in an XML document.
Parameters:
  expectedValue -
Parameters:
  xpathExpression -
Parameters:
  control -
throws:
  SAXException -
throws:
  IOException -
See Also:   XpathEngine
See Also:    which provides the underlying evaluation mechanism



assertXpathEvaluatesTo
public static void assertXpathEvaluatesTo(String expectedValue, String xpathExpression, String inXMLString) throws SAXException, IOException, XpathException(Code)
Assert the value of an Xpath expression in an XML String
Parameters:
  expectedValue -
Parameters:
  xpathExpression -
Parameters:
  inXMLString -
throws:
  SAXException -
throws:
  IOException -
See Also:   XpathEngine
See Also:    which provides the underlying evaluation mechanism



assertXpathEvaluatesTo
public static void assertXpathEvaluatesTo(String expectedValue, String xpathExpression, Document inDocument) throws XpathException(Code)
Assert the value of an Xpath expression in an DOM Document
Parameters:
  expectedValue -
Parameters:
  xpathExpression -
Parameters:
  inDocument -
See Also:   XpathEngine
See Also:    which provides the underlying evaluation mechanism



assertXpathExists
public static void assertXpathExists(String xPathExpression, InputSource control) throws IOException, SAXException, XpathException(Code)
Assert that a specific XPath exists in some given XML
Parameters:
  inXpathExpression -
Parameters:
  control -
See Also:   XpathEngine
See Also:    which provides the underlying evaluation mechanism



assertXpathExists
public static void assertXpathExists(String xPathExpression, String inXMLString) throws IOException, SAXException, XpathException(Code)
Assert that a specific XPath exists in some given XML
Parameters:
  inXpathExpression -
Parameters:
  inXMLString -
See Also:   XpathEngine
See Also:    which provides the underlying evaluation mechanism



assertXpathExists
public static void assertXpathExists(String xPathExpression, Document inDocument) throws XpathException(Code)
Assert that a specific XPath exists in some given XML
Parameters:
  inXpathExpression -
Parameters:
  inDocument -
See Also:   XpathEngine
See Also:    which provides the underlying evaluation mechanism



assertXpathNotExists
public static void assertXpathNotExists(String xPathExpression, InputSource control) throws IOException, SAXException, XpathException(Code)
Assert that a specific XPath does NOT exist in some given XML
Parameters:
  inXpathExpression -
Parameters:
  control -
See Also:   XpathEngine
See Also:    which provides the underlying evaluation mechanism



assertXpathNotExists
public static void assertXpathNotExists(String xPathExpression, String inXMLString) throws IOException, SAXException, XpathException(Code)
Assert that a specific XPath does NOT exist in some given XML
Parameters:
  inXpathExpression -
Parameters:
  inXMLString -
See Also:   XpathEngine
See Also:    which provides the underlying evaluation mechanism



assertXpathNotExists
public static void assertXpathNotExists(String xPathExpression, Document inDocument) throws XpathException(Code)
Assert that a specific XPath does NOT exist in some given XML
Parameters:
  inXpathExpression -
Parameters:
  inDocument -
See Also:   XpathEngine
See Also:    which provides the underlying evaluation mechanism



assertXpathValuesEqual
public static void assertXpathValuesEqual(String controlXpath, String testXpath, Document document) throws XpathException(Code)
Assert that the evaluation of two Xpaths in the same document are equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  document -
See Also:   XpathEngine



assertXpathValuesEqual
public static void assertXpathValuesEqual(String controlXpath, String testXpath, InputSource document) throws SAXException, IOException, XpathException(Code)
Assert that the evaluation of two Xpaths in the same XML string are equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  document -
throws:
  SAXException -
throws:
  IOException -



assertXpathValuesEqual
public static void assertXpathValuesEqual(String controlXpath, String testXpath, String inXMLString) throws SAXException, IOException, XpathException(Code)
Assert that the evaluation of two Xpaths in the same XML string are equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  inXMLString -
throws:
  SAXException -
throws:
  IOException -



assertXpathValuesEqual
public static void assertXpathValuesEqual(String controlXpath, InputSource control, String testXpath, InputSource test) throws SAXException, IOException, XpathException(Code)
Assert that the evaluation of two Xpaths in two XML strings are equal
Parameters:
  xpathOne -
Parameters:
  control -
Parameters:
  xpathTwo -
Parameters:
  test -
throws:
  SAXException -
throws:
  IOException -



assertXpathValuesEqual
public static void assertXpathValuesEqual(String controlXpath, String inControlXMLString, String testXpath, String inTestXMLString) throws SAXException, IOException, XpathException(Code)
Assert that the evaluation of two Xpaths in two XML strings are equal
Parameters:
  xpathOne -
Parameters:
  inControlXMLString -
Parameters:
  xpathTwo -
Parameters:
  inTestXMLString -
throws:
  SAXException -
throws:
  IOException -



assertXpathValuesEqual
public static void assertXpathValuesEqual(String controlXpath, Document controlDocument, String testXpath, Document testDocument) throws XpathException(Code)
Assert that the evaluation of two Xpaths in two documents are equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  document -
See Also:   XpathEngine



assertXpathValuesNotEqual
public static void assertXpathValuesNotEqual(String controlXpath, String testXpath, InputSource control) throws SAXException, IOException, XpathException(Code)
Assert that the evaluation of two Xpaths in the same XML string are NOT equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  control -
throws:
  SAXException -
throws:
  IOException -



assertXpathValuesNotEqual
public static void assertXpathValuesNotEqual(String controlXpath, String testXpath, String inXMLString) throws SAXException, IOException, XpathException(Code)
Assert that the evaluation of two Xpaths in the same XML string are NOT equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  inXMLString -
throws:
  SAXException -
throws:
  IOException -



assertXpathValuesNotEqual
public static void assertXpathValuesNotEqual(String controlXpath, String testXpath, Document document) throws XpathException(Code)
Assert that the evaluation of two Xpaths in the same document are NOT equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  document -



assertXpathValuesNotEqual
public static void assertXpathValuesNotEqual(String controlXpath, InputSource control, String testXpath, InputSource test) throws SAXException, IOException, XpathException(Code)
Assert that the evaluation of two Xpaths in two XML strings are NOT equal
Parameters:
  xpathOne -
Parameters:
  control -
Parameters:
  xpathTwo -
Parameters:
  test -
throws:
  SAXException -
throws:
  IOException -



assertXpathValuesNotEqual
public static void assertXpathValuesNotEqual(String controlXpath, String inControlXMLString, String testXpath, String inTestXMLString) throws SAXException, IOException, XpathException(Code)
Assert that the evaluation of two Xpaths in two XML strings are NOT equal
Parameters:
  xpathOne -
Parameters:
  inControlXMLString -
Parameters:
  xpathTwo -
Parameters:
  inTestXMLString -
throws:
  SAXException -
throws:
  IOException -



assertXpathValuesNotEqual
public static void assertXpathValuesNotEqual(String controlXpath, Document controlDocument, String testXpath, Document testDocument) throws XpathException(Code)
Assert that the evaluation of two Xpaths in two documents are NOT equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  document -



assertXpathsEqual
public static void assertXpathsEqual(String controlXpath, String testXpath, Document document) throws XpathException(Code)
Assert that the node lists of two Xpaths in the same document are equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  document -
See Also:   XpathEngine



assertXpathsEqual
public static void assertXpathsEqual(String controlXpath, String testXpath, InputSource document) throws SAXException, IOException, XpathException(Code)
Assert that the node lists of two Xpaths in the same document are equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  document -
See Also:   XpathEngine



assertXpathsEqual
public static void assertXpathsEqual(String controlXpath, String testXpath, String inXMLString) throws SAXException, IOException, XpathException(Code)
Assert that the node lists of two Xpaths in the same XML string are equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  inXMLString -
throws:
  SAXException -
throws:
  IOException -



assertXpathsEqual
public static void assertXpathsEqual(String controlXpath, InputSource controlDocument, String testXpath, InputSource testDocument) throws SAXException, IOException, XpathException(Code)
Assert that the node lists of two Xpaths in two documents are equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  controlDocument -
Parameters:
  testDocument -
See Also:   XpathEngine



assertXpathsEqual
public static void assertXpathsEqual(String controlXpath, String inControlXMLString, String testXpath, String inTestXMLString) throws SAXException, IOException, XpathException(Code)
Assert that the node lists of two Xpaths in two XML strings are equal
Parameters:
  xpathOne -
Parameters:
  inControlXMLString -
Parameters:
  xpathTwo -
Parameters:
  inTestXMLString -
throws:
  SAXException -
throws:
  IOException -



assertXpathsEqual
public static void assertXpathsEqual(String controlXpath, Document controlDocument, String testXpath, Document testDocument) throws XpathException(Code)
Assert that the node lists of two Xpaths in two documents are equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  controlDocument -
Parameters:
  testDocument -
See Also:   XpathEngine



assertXpathsNotEqual
public static void assertXpathsNotEqual(String controlXpath, String testXpath, Document document) throws XpathException(Code)
Assert that the node lists of two Xpaths in the same document are NOT equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  document -
See Also:   XpathEngine



assertXpathsNotEqual
public static void assertXpathsNotEqual(String controlXpath, String testXpath, InputSource document) throws SAXException, IOException, XpathException(Code)
Assert that the node lists of two Xpaths in the same document are NOT equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  document -
See Also:   XpathEngine



assertXpathsNotEqual
public static void assertXpathsNotEqual(String controlXpath, String testXpath, String inXMLString) throws SAXException, IOException, XpathException(Code)
Assert that the node lists of two Xpaths in the same XML string are NOT equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  inXMLString -
throws:
  SAXException -
throws:
  IOException -



assertXpathsNotEqual
public static void assertXpathsNotEqual(String controlXpath, String inControlXMLString, String testXpath, String inTestXMLString) throws SAXException, IOException, XpathException(Code)
Assert that the node lists of two Xpaths in two XML strings are NOT equal
Parameters:
  xpathOne -
Parameters:
  inControlXMLString -
Parameters:
  xpathTwo -
Parameters:
  inTestXMLString -
throws:
  SAXException -
throws:
  IOException -



assertXpathsNotEqual
public static void assertXpathsNotEqual(String controlXpath, InputSource controlDocument, String testXpath, InputSource testDocument) throws SAXException, IOException, XpathException(Code)
Assert that the node lists of two Xpaths in two XML strings are NOT equal
Parameters:
  xpathOne -
Parameters:
  controlDocument -
Parameters:
  xpathTwo -
Parameters:
  testDocument -
throws:
  SAXException -
throws:
  IOException -



assertXpathsNotEqual
public static void assertXpathsNotEqual(String controlXpath, Document controlDocument, String testXpath, Document testDocument) throws XpathException(Code)
Assert that the node lists of two Xpaths in two documents are NOT equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  document -
See Also:   XpathEngine



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.