Package org.custommonkey.xmlunit
Interface NodeTester
- All Known Implementing Classes:
AbstractNodeTester
,CountingNodeTester
public interface NodeTester
Perform Node-by-Node validation of a DOM Document.
Nodes are supplied to
testNode
method by a NodeTest instance,
and after all the nodes in the NodeTest have been supplied the
noMoreNodes
method is called.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
noMoreNodes
(NodeTest forTest) Validate that the Nodes passed one-by-one to thetestNode
method were all the Nodes expected.void
Validate a single Node
-
Method Details
-
testNode
Validate a single Node- Parameters:
aNode
- the node to testforTest
- the test to perform- Throws:
NodeTestException
- if the node fails the test
-
noMoreNodes
Validate that the Nodes passed one-by-one to thetestNode
method were all the Nodes expected.- Parameters:
forTest
- the test to perform- Throws:
NodeTestException
- if this instance was expecting more nodes
-