public class CountingNodeTester extends Object implements NodeTester
NodeTest
Constructor and Description |
---|
CountingNodeTester(int expectedNumNodes) |
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 void testNode(Node aNode, NodeTest forTest)
testNode
in interface NodeTester
aNode
- forTest
- public void noMoreNodes(NodeTest forTest) throws NodeTestException
resetCounter
so that the instance can be reused.noMoreNodes
in interface NodeTester
true
- if expected num nodes == actual num nodes,
false otherwiseNodeTestException
- if this instance was expecting more nodespublic void resetCounter()
NodeTest
Copyright © 2001–2017 XMLUnit. All rights reserved.