Package org.custommonkey.xmlunit
Root of the XMLUnit 1.x compatibility layer.
This package contains an API compatible with XMLUnit 1.x but using XMLUnit Core 2.x under the covers.
If you are writing new tests, don't use this package, use XMLUnit 2.x directly instead.
-
Interface Summary Interface Description ComparisonController Callback interface used by DifferenceEngine to determine whether to halt the node-by-node comparison of two pieces of XMLDifferenceConstants Constants for describing differences between DOM Nodes.DifferenceEngineContract The pieces of DifferenceEngine's API used by Diff.DifferenceListener Listener for callbacks from aDifferenceEngine comparison
.DoctypeSupport.Readable ElementQualifier Interface used by the DifferenceEngine class to determine which elements can be compared within a NodeList of child nodes.MatchTracker Listener for callbacks from aDifferenceEngine comparison
that is notified on each and every comparision that resulted in a match.NamespaceContext Interface used by XpathEngine in order to map prefixes to namespace URIs.NodeTester Perform Node-by-Node validation of a DOM Document.Transform.Trans<R> XMLConstants A convenient place to hang constants relating to general XML usageXpathEngine Abstraction of an engine evaluating XPath expressions.XSLTConstants A convenient place to hang constants relating to XSL transformations -
Class Summary Class Description AbstractNodeTester Helper class.DetailedDiff Compares and describes all the differences between two XML documents.Diff Compares and describes any difference between XML documents.Difference Value object that describes a difference between DOM Nodes using one of the DifferenceConstants ID values and a NodeDetail instance.DifferenceEngine Class that has responsibility for comparing Nodes and notifying a DifferenceListener of any differences or dissimilarities that are found.DoctypeInputStream Adapts the marked-up content in a source InputStream to specify that it conforms to a different DTD.DoctypeReader Adapts the marked-up content in a source Reader to specify that it conforms to a different DTD.DoctypeSupport Contains some common code for DoctypeReader and DoctypeInputStream.DoctypeSupport.IntBufferReadable ElementNameAndAttributeQualifier More complex interface implementation that tests two elements for tag name and attribute name comparability.ElementNameAndTextQualifier More complex interface implementation that tests two elements for tag name and text content comparability.ElementNameQualifier Simple interface implementation that tests two elements for name comparability.HTMLDocumentBuilder Build a DOM document from HTML content converting from 'plain' HTML into 'XHTML' along the way with the help of a TolerantSaxDocumentBuilder and the Swing html parser classes.IgnoreTextAndAttributeValuesDifferenceListener Class to use when performing a Diff that only compares the structure of 2 pieces of XML, i.e.JAXPConstants Utility constant class for JAXP-defined constants.JAXPConstants.Properties NewDifferenceEngine Class that has responsibility for comparing Nodes and notifying a DifferenceListener of any differences or dissimilarities that are found.NewDifferenceEngine.CompareUnmatchedNodeMatcher NewDifferenceEngine.CompareUnmatchedNodeMatcher.Entry NewDifferenceEngine.ComparisonController2ComparisonController NewDifferenceEngine.DifferenceListener2DifferenceEvaluator NewDifferenceEngine.ElementQualifier2ElementSelector NewDifferenceEngine.IgnoreDoctypeNotPresentDifferences NewDifferenceEngine.IsBetweenDocumentNodeAndRootElement Tests whether the DifferenceEngine is currently processing comparisons of "things" between the document node and the document's root element (comments or PIs, mostly) since these must be ignored for backwards compatibility reasons.NewDifferenceEngine.MatchTracker2ComparisonListener NodeDescriptor Class for describing NodesNodeDetail Parameter class for holding information about aNode
within a Difference instanceNodeInputStream Adapter class to present the content of a DOM Node (e.g.NodeTest Encapsulation of the Node-by-Node testing of a DOM Document Uses a nodetype-specificNodeFilter
to pass the DOM Nodes to a NodeTester instance that performs the acual Node validation.NodeTest.NodeTypeNodeFilter Node type specific Node Filter: accepts Nodes of those types specified in constructor, rejects all othersQualifiedName Since javax.xml.namespace.QName is not present prior to Java5, this is XMLUnit's own abstraction.SimpleNamespaceContext Implementation of NamespaceContext that's backed by a map.SimpleXpathEngine Simple class for accessing the Nodes matched by an Xpath expression, or evaluating the String value of an Xpath expression.TolerantSaxDocumentBuilder Uses Sax events from theContentHandler
andLexicalHandler
interfaces to build a DOM document in a tolerant fashion -- it can cope with start tags without end tags, and end tags without start tags for example.Transform Handy wrapper for an XSLT transformation performed using JAXP/Trax.Validator Validates XML against its internal or external DOCTYPE, or a completely different DOCTYPE.XMLAssert Collection of static methods so that XML assertion facilities are available in any class, not just test suites.XMLAssert.NodeBasedNamespaceContext XMLTestCase JUnit TestCase subclass: extend this to add XML assertion facilities to your test suites.XMLUnit Allows access to project control parameters such as which Parser to use and provides some convenience methods for building Documents from Strings etc.XpathNodeTracker Tracks Nodes visited by the DifferenceEngine and converts that information into an Xpath-String to supply to the NodeDetail of a Difference instance. -
Exception Summary Exception Description DifferenceEngine.DifferenceFoundException Marker exception thrown by the protected compare() method and passed upwards through the call stack to the public compare() method.NodeTestException Thrown by a NodeTest that fails.