Class ArrayComparisonElementCondition

java.lang.Object
uk.org.webcompere.modelassert.json.condition.tree.ArrayComparisonElementCondition
All Implemented Interfaces:
ArrayElementCondition

public class ArrayComparisonElementCondition extends Object implements ArrayElementCondition
Allow the LooseComparison algorithm to use elements of the expected as conditions, while still honouring the various rules that guide how matching is performed
  • Constructor Details

    • ArrayComparisonElementCondition

      public ArrayComparisonElementCondition(com.fasterxml.jackson.databind.JsonNode elementInExpected, int indexOfExpected, Location pathToHere, TreeComparisonCondition treeComparisonCondition)
      Compare an element in the target array
      Parameters:
      elementInExpected - which target element is being matched
      indexOfExpected - what is its index
      pathToHere - what is the path in the tree to this point
      treeComparisonCondition - what is the parent tree comparer - used to recurse into for child elements
  • Method Details