View Javadoc

1   package uk.co.datumedge.hamcrest.json;
2   
3   public interface JSONModalComparator<T> extends JSONComparator<T> {
4   	/**
5   	 * @return a {@code JSONModalComparator} instance that is equivalent to this, but does not check the ordering of
6   	 *         array elements
7   	 */
8   	JSONModalComparator<T> butAllowingAnyArrayOrdering();
9   
10  	/**
11  	 * @return a {@code JSONModalComparator} instance that is equivalent to this, but does allows fields to appear in
12  	 *         the actual JSON document that do not appear in the expected JSON document. elements
13  	 */
14  	JSONModalComparator<T> butAllowingExtraUnexpectedFields();
15  }