public interface

JSONModalComparator

implements JSONComparator<T>
uk.co.datumedge.hamcrest.json.JSONModalComparator<T>

Summary

Public Methods
abstract JSONModalComparator<T> butAllowingAnyArrayOrdering()
abstract JSONModalComparator<T> butAllowingExtraUnexpectedFields()
[Expand]
Inherited Methods
From interface uk.co.datumedge.hamcrest.json.JSONComparator

Public Methods

public abstract JSONModalComparator<T> butAllowingAnyArrayOrdering ()

Returns
  • a JSONModalComparator instance that is equivalent to this, but does not check the ordering of array elements

public abstract 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. elements