Interface JSONModalComparator<T>

All Superinterfaces:
JSONComparator<T>

public interface JSONModalComparator<T> extends JSONComparator<T>
Allows a comparator's behaviour to be configured to allow any array ordering, or extra unexpected fields.
  • Method Details

    • butAllowingAnyArrayOrdering

      JSONModalComparator<T> butAllowingAnyArrayOrdering()
      Returns:
      a JSONModalComparator instance that is equivalent to this, but does not check the ordering of array elements
    • butAllowingExtraUnexpectedFields

      JSONModalComparator<T> butAllowingExtraUnexpectedFields()
      Returns:
      a JSONModalComparator instance that is equivalent to this, but does allows fields to appear in the actual JSON document that do not appear in the expected JSON document.