Java Doc for XMLTestCase.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.XMLTestCase

All known Subclasses:   org.custommonkey.xmlunit.test_HTMLDocumentBuilder,  org.custommonkey.xmlunit.test_XMLTestCase,  org.custommonkey.xmlunit.examples.ComparingPiecesOfXML,  org.custommonkey.xmlunit.test_Validator,  org.custommonkey.xmlunit.test_TolerantSaxDocumentBuilder,  org.custommonkey.xmlunit.examples.ATourOfXMLUnit,
XMLTestCase
abstract public class XMLTestCase extends TestCase implements XSLTConstants(Code)
JUnit TestCase subclass: extend this to add XML assertion facilities to your test suites. Available assertions are provided by static methods of the XMLAssertXMLAssert class. NB: All underlying similarity and difference testing is done using Diff Diff instances which can be instantiated and evaluated independently of an XMLTestCase.
See Also:   Diff.similar
See Also:   Diff.identical
See Also:   
Examples and more at xmlunit.sourceforge.net



Constructor Summary
public  XMLTestCase()
     Construct a new XML test case.
public  XMLTestCase(String name)
     Construct a new test case.

Method Summary
public  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  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  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  voidassertXMLEqual(Diff diff, boolean assertion)
     Assert that the result of an XML comparison is or is not similar.
public  voidassertXMLEqual(String msg, Diff diff, boolean assertion)
     Assert that the result of an XML comparison is or is not similar.
public  voidassertXMLEqual(InputSource control, InputSource test)
    
public  voidassertXMLEqual(String control, String test)
    
public  voidassertXMLEqual(Document control, Document test)
    
public  voidassertXMLEqual(Reader control, Reader test)
    
public  voidassertXMLEqual(String err, String control, String test)
    
public  voidassertXMLEqual(String err, InputSource control, InputSource test)
    
public  voidassertXMLEqual(String err, Document control, Document test)
    
public  voidassertXMLEqual(String err, Reader control, Reader test)
    
public  voidassertXMLIdentical(Diff diff, boolean assertion)
    
public  voidassertXMLIdentical(String msg, Diff diff, boolean assertion)
    
public  voidassertXMLNotEqual(InputSource control, InputSource test)
    
public  voidassertXMLNotEqual(String control, String test)
    
public  voidassertXMLNotEqual(Document control, Document test)
    
public  voidassertXMLNotEqual(Reader control, Reader test)
    
public  voidassertXMLNotEqual(String err, InputSource control, InputSource test)
    
public  voidassertXMLNotEqual(String err, String control, String test)
    
public  voidassertXMLNotEqual(String err, Document control, Document test)
    
public  voidassertXMLNotEqual(String err, Reader control, Reader test)
    
public  voidassertXMLValid(InputSource xml)
    
public  voidassertXMLValid(String xmlString)
    
public  voidassertXMLValid(InputSource xml, String systemId)
    
public  voidassertXMLValid(String xmlString, String systemId)
    
public  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  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  voidassertXMLValid(Validator validator)
    
public  voidassertXpathEvaluatesTo(String expectedValue, String xpathExpression, InputSource control)
    
public  voidassertXpathEvaluatesTo(String expectedValue, String xpathExpression, String inXMLString)
    
public  voidassertXpathEvaluatesTo(String expectedValue, String xpathExpression, Document inDocument)
    
public  voidassertXpathExists(String xPathExpression, InputSource xml)
    
public  voidassertXpathExists(String xPathExpression, String inXMLString)
    
public  voidassertXpathExists(String xPathExpression, Document inDocument)
    
public  voidassertXpathNotExists(String xPathExpression, InputSource xml)
    
public  voidassertXpathNotExists(String xPathExpression, String inXMLString)
    
public  voidassertXpathNotExists(String xPathExpression, Document inDocument)
    
public  voidassertXpathValuesEqual(String controlXpath, String testXpath, Document document)
    
public  voidassertXpathValuesEqual(String controlXpath, String testXpath, InputSource control)
    
public  voidassertXpathValuesEqual(String controlXpath, String testXpath, String inXMLString)
    
public  voidassertXpathValuesEqual(String controlXpath, InputSource control, String testXpath, InputSource test)
    
public  voidassertXpathValuesEqual(String controlXpath, String inControlXMLString, String testXpath, String inTestXMLString)
    
public  voidassertXpathValuesEqual(String controlXpath, Document controlDocument, String testXpath, Document testDocument)
    
public  voidassertXpathValuesNotEqual(String controlXpath, String testXpath, InputSource control)
    
public  voidassertXpathValuesNotEqual(String controlXpath, String testXpath, String inXMLString)
    
public  voidassertXpathValuesNotEqual(String controlXpath, String testXpath, Document document)
    
public  voidassertXpathValuesNotEqual(String controlXpath, InputSource control, String testXpath, InputSource test)
    
public  voidassertXpathValuesNotEqual(String controlXpath, String inControlXMLString, String testXpath, String inTestXMLString)
    
public  voidassertXpathValuesNotEqual(String controlXpath, Document controlDocument, String testXpath, Document testDocument)
    
public  voidassertXpathsEqual(String controlXpath, String testXpath, InputSource document)
    
public  voidassertXpathsEqual(String controlXpath, String testXpath, Document document)
    
public  voidassertXpathsEqual(String controlXpath, String testXpath, String inXMLString)
    
public  voidassertXpathsEqual(String controlXpath, InputSource control, String testXpath, InputSource test)
    
public  voidassertXpathsEqual(String controlXpath, String inControlXMLString, String testXpath, String inTestXMLString)
    
public  voidassertXpathsEqual(String controlXpath, Document controlDocument, String testXpath, Document testDocument)
    
public  voidassertXpathsNotEqual(String controlXpath, String testXpath, Document document)
    
public  voidassertXpathsNotEqual(String controlXpath, String testXpath, InputSource control)
    
public  voidassertXpathsNotEqual(String controlXpath, String testXpath, String inXMLString)
    
public  voidassertXpathsNotEqual(String controlXpath, InputSource control, String testXpath, InputSource test)
    
public  voidassertXpathsNotEqual(String controlXpath, String inControlXMLString, String testXpath, String inTestXMLString)
    
public  voidassertXpathsNotEqual(String controlXpath, Document controlDocument, String testXpath, Document testDocument)
    
public  DiffcompareXML(InputSource control, InputSource test)
    
public  DiffcompareXML(Reader control, Reader test)
    
public  DiffcompareXML(String control, Reader test)
    
public  DiffcompareXML(Reader control, String test)
    
public  DiffcompareXML(String control, String test)
    
public  DiffcompareXML(Document control, Document test)
    


Constructor Detail
XMLTestCase
public XMLTestCase()(Code)
Construct a new XML test case.



XMLTestCase
public XMLTestCase(String name)(Code)
Construct a new test case.
Parameters:
  name - Name of test




Method Detail
assertNodeTestPasses
public 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 void assertXMLValid(InputSource xml) throws SAXException, ConfigurationException(Code)
Assert that a piece of XML contains valid XML: the input 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 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 void assertXMLValid(InputSource xml, String systemId) throws SAXException, ConfigurationException(Code)
Assert that a piece of 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 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 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 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 void assertXMLValid(Validator validator)(Code)
Assert that a Validator instance returns isValid() == true
Parameters:
  validator -



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



assertXpathEvaluatesTo
public 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 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 -
Parameters:
  ctx -
See Also:   XpathEngine
See Also:    which provides the underlying evaluation mechanism



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



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



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



assertXpathNotExists
public 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 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 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 void assertXpathValuesEqual(String controlXpath, String testXpath, InputSource control) throws SAXException, IOException, XpathException(Code)
Assert that the evaluation of two Xpaths in the same XML are equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  control -
throws:
  SAXException -
throws:
  IOException -



assertXpathValuesEqual
public 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 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 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 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 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 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 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 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 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 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 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 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 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 void assertXpathsEqual(String controlXpath, InputSource control, String testXpath, InputSource test) throws SAXException, IOException, XpathException(Code)
Assert that the node lists of two Xpaths in two XML pieces are equal
Parameters:
  xpathOne -
Parameters:
  control -
Parameters:
  xpathTwo -
Parameters:
  test -
throws:
  SAXException -
throws:
  IOException -



assertXpathsEqual
public 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 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:
  document -
See Also:   XpathEngine



assertXpathsNotEqual
public 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 void assertXpathsNotEqual(String controlXpath, String testXpath, InputSource control) throws SAXException, IOException, XpathException(Code)
Assert that the node lists of two Xpaths in the same XML are NOT equal
Parameters:
  xpathOne -
Parameters:
  xpathTwo -
Parameters:
  control -
throws:
  SAXException -
throws:
  IOException -



assertXpathsNotEqual
public 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 void assertXpathsNotEqual(String controlXpath, InputSource control, String testXpath, InputSource test) throws SAXException, IOException, XpathException(Code)
Assert that the node lists of two Xpaths in two pieces of XML are NOT equal
Parameters:
  xpathOne -
Parameters:
  control -
Parameters:
  xpathTwo -
Parameters:
  test -
throws:
  SAXException -
throws:
  IOException -



assertXpathsNotEqual
public 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 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



compareXML
public Diff compareXML(InputSource control, InputSource test) throws SAXException, IOException(Code)
Compare XML documents provided by two InputSource classes
Parameters:
  control - Control document
Parameters:
  test - Document to test Diff object describing differences in documents
throws:
  SAXException -
throws:
  IOException -



compareXML
public Diff compareXML(Reader control, Reader test) throws SAXException, IOException(Code)
Compare XML documents provided by two Reader classes
Parameters:
  control - Control document
Parameters:
  test - Document to test Diff object describing differences in documents
throws:
  SAXException -
throws:
  IOException -



compareXML
public Diff compareXML(String control, Reader test) throws SAXException, IOException(Code)
Compare XML documents provided by two Reader classes
Parameters:
  control - Control document
Parameters:
  test - Document to test Diff object describing differences in documents
throws:
  SAXException -
throws:
  IOException -



compareXML
public Diff compareXML(Reader control, String test) throws SAXException, IOException(Code)
Compare XML documents provided by two Reader classes
Parameters:
  control - Control document
Parameters:
  test - Document to test Diff object describing differences in documents
throws:
  SAXException -
throws:
  IOException -



compareXML
public Diff compareXML(String control, String test) throws SAXException, IOException(Code)
Compare two XML documents provided as strings
Parameters:
  control - Control document
Parameters:
  test - Document to test Diff object describing differences in documents
throws:
  SAXException -
throws:
  IOException -



compareXML
public Diff compareXML(Document control, Document test)(Code)
Compare two XML documents provided as strings
Parameters:
  control - Control document
Parameters:
  test - Document to test Diff object describing differences in documents



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