NodeTesterCountingNodeTesterpublic class CountingNodeTester extends java.lang.Object implements NodeTester
NodeTest| Constructor | Description |
|---|---|
CountingNodeTester(int expectedNumNodes) |
| Modifier and Type | Method | 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(org.w3c.dom.Node aNode,
NodeTest forTest) |
A single Node is always valid
|
public void testNode(org.w3c.dom.Node aNode,
NodeTest forTest)
testNode in interface NodeTesteraNode - forTest - public void noMoreNodes(NodeTest forTest) throws NodeTestException
resetCounter
so that the instance can be reused.noMoreNodes in interface NodeTesterNodeTestException - if this instance was expecting more nodespublic void resetCounter()
NodeTest