Interface NodeMatcher

All Known Implementing Classes:
DefaultNodeMatcher

public interface NodeMatcher
Strategy that matches control and tests nodes for comparison.
  • Method Summary

    Modifier and Type
    Method
    Description
    match(Iterable<Node> controlNodes, Iterable<Node> testNodes)
    Matches control and test nodes against each other, returns the matching pairs.
  • Method Details

    • 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_LOOKUP differences}.

      Parameters:
      controlNodes - the control nodes
      testNodes - the test nodes
      Returns:
      a Map.Entry containing the pair for each matched pair of nodes