Class NewDifferenceEngine.CompareUnmatchedNodeMatcher

java.lang.Object
org.custommonkey.xmlunit.NewDifferenceEngine.CompareUnmatchedNodeMatcher
All Implemented Interfaces:
NodeMatcher
Enclosing class:
NewDifferenceEngine

private static class NewDifferenceEngine.CompareUnmatchedNodeMatcher extends Object implements NodeMatcher
  • Field Details

    • nestedMatcher

      private final NodeMatcher nestedMatcher
  • Constructor Details

    • CompareUnmatchedNodeMatcher

      private CompareUnmatchedNodeMatcher(NodeMatcher nested)
  • Method Details

    • match

      public Iterable<Map.Entry<Node,Node>> match(Iterable<Node> controlNodes, Iterable<Node> testNodes)
      Description copied from interface: NodeMatcher
      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_LOOKUP differences}.

      Specified by:
      match in interface NodeMatcher
      Parameters:
      controlNodes - the control nodes
      testNodes - the test nodes
      Returns:
      a Map.Entry containing the pair for each matched pair of nodes