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 NodeTester
NodeTestException
- 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
- NodeTestException
- always: override if required in subclasspublic void testCDATASection(CDATASection cdata) throws NodeTestException
cdata
- NodeTestException
- always: override if required in subclasspublic void testComment(Comment comment) throws NodeTestException
comment
- NodeTestException
- always: override if required in subclasspublic void testDocumentType(DocumentType doctype) throws NodeTestException
doctype
- NodeTestException
- always: override if required in subclasspublic void testElement(Element element) throws NodeTestException
element
- NodeTestException
- always: override if required in subclasspublic void testEntity(Entity entity) throws NodeTestException
entity
- NodeTestException
- always: override if required in subclasspublic void testEntityReference(EntityReference reference) throws NodeTestException
reference
- NodeTestException
- always: override if required in subclasspublic void testNotation(Notation notation) throws NodeTestException
notation
- NodeTestException
- always: override if required in subclasspublic void testProcessingInstruction(ProcessingInstruction instr) throws NodeTestException
instr
- NodeTestException
- always: override if required in subclasspublic void testText(Text text) throws NodeTestException
text
- NodeTestException
- 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 NodeTester
NodeTestException
- if mode Nodes were expectedCopyright © 2001–2017 XMLUnit. All rights reserved.