| Modifier and Type | Method and Description |
|---|---|
SameJSONAs<T> |
SameJSONAs.allowingAnyArrayOrdering()
Creates a matcher that allows any element ordering within JSON arrays.
|
SameJSONAs<T> |
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 compares
JSONArrays. |
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 compares JSONObjects or JSONArrays.
|
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 compares
JSONObjects. |
static SameJSONAs<org.json.JSONObject> |
SameJSONAs.sameJSONObjectAs(org.json.JSONObject expected,
JSONModalComparator<org.json.JSONObject> comparator) |
Copyright © 2012. All Rights Reserved.