org.custommonkey.xmlunit
public class CountingNodeTester extends Object implements NodeTester
See Also: NodeTest
| Constructor Summary | |
|---|---|
| CountingNodeTester(int expectedNumNodes) | |
| Method Summary | |
|---|---|
| void | noMoreNodes(NodeTest forTest)
Called by NodeTest when all nodes have been iterated over: time to see
if all the nodes that were expected were found.
|
| void | resetCounter()
Reset the counter so that an instance can be reused for another
NodeTest |
| void | testNode(Node aNode, NodeTest forTest)
A single Node is always valid |
resetCounter
so that the instance can be reused.Throws: true if expected num nodes == actual num nodes, false otherwise
NodeTestParameters: aNode forTest