public class CountingNodeTester extends Object implements NodeTester
NodeTest| Constructor and Description |
|---|
CountingNodeTester(int expectedNumNodes)
Creates a new NodeTester
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public CountingNodeTester(int expectedNumNodes)
expectedNumNodes - expected number of nodespublic void testNode(Node aNode, NodeTest forTest)
testNode in interface NodeTesteraNode - the node to testforTest - the test to performpublic void noMoreNodes(NodeTest forTest) throws NodeTestException
resetCounter
so that the instance can be reused.noMoreNodes in interface NodeTesterforTest - the test to performNodeTestException - if expected num nodes == actual num nodespublic void resetCounter()
NodeTestCopyright © 2001–2025 XMLUnit. All rights reserved.