| java.lang.Object org.custommonkey.xmlunit.NodeTest
NodeTest | public class NodeTest (Code) | | Encapsulation of the Node-by-Node testing of a DOM Document
Uses a nodetype-specific NodeFilter to pass the DOM Nodes
to a NodeTester instance that performs the acual Node validation.
Examples and more at xmlunit.
sourceforge.net
See Also: NodeTester |
NodeTest | public NodeTest(Document document)(Code) | | Construct a NodeTest for the specified Document
exception: IllegalArgumentException - if the Document does not support the DOMDocumentTraversal interface (most DOM implementations should provide thissupport) |
NodeTest | public NodeTest(DocumentTraversal documentTraversal, Node rootNode)(Code) | | Construct a NodeTest using the specified DocumentTraversal, starting at
the specified root node
|
performTest | public void performTest(NodeTester tester, short singleNodeType) throws NodeTestException(Code) | | Does this NodeTest pass using the specified NodeTester instance?
Parameters: tester - Parameters: singleNodeType - note Node.ATTRIBUTE_NODE is notexposed by the DocumentTraversal node iterator unless the root nodeis itself an attribute - so a NodeTester that needs to test attributesshould obtain those attributes from Node.ELEMENT_NODE nodes exception: NodeTestException - if test fails |
performTest | public void performTest(NodeTester tester, short[] nodeTypes) throws NodeTestException(Code) | | Does this NodeTest pass using the specified NodeTester instance?
Parameters: tester - Parameters: nodeTypes - note Node.ATTRIBUTE_NODE is notexposed by the DocumentTraversal node iterator unless the root nodeis itself an attribute - so a NodeTester that needs to test attributesshould obtain those attributes from Node.ELEMENT_NODE nodes instead exception: NodeTestException - if test fails |
|
|