public abstract class AbstractNodeTester extends Object implements NodeTester
NodeTest| Constructor and Description |
|---|
AbstractNodeTester() |
| Modifier and Type | Method and Description |
|---|---|
void |
noMoreNodes(NodeTest forTest)
Validate that the Nodes validated one-by-one in the
isValid
method were all the Nodes expected. |
void |
testAttribute(Attr attribute)
Template delegator for testNode() method.
|
void |
testCDATASection(CDATASection cdata)
Template delegator for testNode() method.
|
void |
testComment(Comment comment)
Template delegator for testNode() method.
|
void |
testDocumentType(DocumentType doctype)
Template delegator for testNode() method.
|
void |
testElement(Element element)
Template delegator for testNode() method.
|
void |
testEntity(Entity entity)
Template delegator for testNode() method.
|
void |
testEntityReference(EntityReference reference)
Template delegator for testNode() method.
|
void |
testNode(Node aNode,
NodeTest forTest)
Validate a single Node by delegating to node type specific methods.
|
void |
testNotation(Notation notation)
Template delegator for testNode() method.
|
void |
testProcessingInstruction(ProcessingInstruction instr)
Template delegator for testNode() method.
|
void |
testText(Text text)
Template delegator for testNode() method.
|
public void testNode(Node aNode, NodeTest forTest) throws NodeTestException
testNode in interface NodeTesteraNode - the node to testforTest - the test to performNodeTestException - if the node fails the testtestAttribute(Attr),
testCDATASection(CDATASection),
testComment(Comment),
testDocumentType(DocumentType),
testElement(Element),
testEntity(Entity),
testEntityReference(EntityReference),
testNotation(Notation),
testProcessingInstruction(ProcessingInstruction),
testText(Text)public void testAttribute(Attr attribute) throws NodeTestException
attribute - the attribute to testNodeTestException - always: override if required in subclasspublic void testCDATASection(CDATASection cdata) throws NodeTestException
cdata - the CDATA section to testNodeTestException - always: override if required in subclasspublic void testComment(Comment comment) throws NodeTestException
comment - the comment to testNodeTestException - always: override if required in subclasspublic void testDocumentType(DocumentType doctype) throws NodeTestException
doctype - the cofument type to testNodeTestException - always: override if required in subclasspublic void testElement(Element element) throws NodeTestException
element - the element to testNodeTestException - always: override if required in subclasspublic void testEntity(Entity entity) throws NodeTestException
entity - the entity to testNodeTestException - always: override if required in subclasspublic void testEntityReference(EntityReference reference) throws NodeTestException
reference - the reference to testNodeTestException - always: override if required in subclasspublic void testNotation(Notation notation) throws NodeTestException
notation - the notation to testNodeTestException - always: override if required in subclasspublic void testProcessingInstruction(ProcessingInstruction instr) throws NodeTestException
instr - the processing instruction to testNodeTestException - always: override if required in subclasspublic void testText(Text text) throws NodeTestException
text - the text to testNodeTestException - always: override if required in subclasspublic void noMoreNodes(NodeTest forTest) throws NodeTestException
isValid
method were all the Nodes expected. By default do nothing:
can override to add custom logicnoMoreNodes in interface NodeTesterforTest - the test to performNodeTestException - if mode Nodes were expectedCopyright © 2001–2025 XMLUnit. All rights reserved.