Package org.xmlunit.diff
Interface NodeMatcher
-
- All Known Implementing Classes:
DefaultNodeMatcher
public interface NodeMatcherStrategy that matches control and tests nodes for comparison.
-
-
Method Detail
-
match
Iterable<Map.Entry<Node,Node>> match(Iterable<Node> controlNodes, Iterable<Node> testNodes)
Matches control and test nodes against each other, returns the matching pairs.Nodes passed in as attributes but not returned as member of any pair will cause
ComparisonType.CHILD_LOOKUPdifferences}.- Parameters:
controlNodes- the control nodestestNodes- the test nodes- Returns:
- a Map.Entry containing the pair for each matched pair of nodes
-
-