Package uk.co.datumedge.hamcrest.json
Interface JSONModalComparator<T>
- All Superinterfaces:
JSONComparator<T>
Allows a comparator's behaviour to be configured to allow any array ordering, or extra unexpected fields.
-
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from interface uk.co.datumedge.hamcrest.json.JSONComparator
compare
-
Method Details
-
butAllowingAnyArrayOrdering
JSONModalComparator<T> butAllowingAnyArrayOrdering()- Returns:
- a
JSONModalComparatorinstance that is equivalent to this, but does not check the ordering of array elements
-
butAllowingExtraUnexpectedFields
JSONModalComparator<T> butAllowingExtraUnexpectedFields()- Returns:
- a
JSONModalComparatorinstance 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.
-