Uses of Class
uk.co.datumedge.hamcrest.json.SameJSONAs
-
Uses of SameJSONAs in uk.co.datumedge.hamcrest.json
Methods in uk.co.datumedge.hamcrest.json that return SameJSONAsModifier and TypeMethodDescriptionSameJSONAs.allowingAnyArrayOrdering()Creates a matcher that allows any element ordering within JSON arrays.SameJSONAs.allowingExtraUnexpectedFields()Creates a matcher that allows fields not present in the expected JSON document.static SameJSONAs<org.json.JSONArray>SameJSONAs.sameJSONArrayAs(org.json.JSONArray expected) Creates a matcher that comparesJSONArrays.static SameJSONAs<? super org.json.JSONArray>SameJSONAs.sameJSONArrayAs(org.json.JSONArray expected, JSONModalComparator<org.json.JSONArray> comparator) static SameJSONAs<? super String>SameJSONAs.sameJSONAs(String expected) Creates a matcher that comparesJSONObjects orJSONArrays represented asStrings.static SameJSONAs<? super String>SameJSONAs.sameJSONAs(String expected, JSONModalComparator<String> comparator) static SameJSONAs<org.json.JSONObject>SameJSONAs.sameJSONObjectAs(org.json.JSONObject expected) Creates a matcher that comparesJSONObjects.static SameJSONAs<org.json.JSONObject>SameJSONAs.sameJSONObjectAs(org.json.JSONObject expected, JSONModalComparator<org.json.JSONObject> comparator)