public class DefaultComparator extends AbstractComparator
JSONCompareMode that is passed as constructor's argument.| Constructor and Description |
|---|
DefaultComparator(JSONCompareMode mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
compareJSON(String prefix,
org.json.JSONObject expected,
org.json.JSONObject actual,
JSONCompareResult result) |
void |
compareJSONArray(String prefix,
org.json.JSONArray expected,
org.json.JSONArray actual,
JSONCompareResult result) |
void |
compareValues(String prefix,
Object expectedValue,
Object actualValue,
JSONCompareResult result) |
checkJsonObjectKeysActualInExpected, checkJsonObjectKeysExpectedInActual, compareJSON, compareJSON, compareJSONArrayOfJsonObjects, compareJSONArrayOfSimpleValues, compareJSONArrayWithStrictOrder, recursivelyCompareJSONArraypublic DefaultComparator(JSONCompareMode mode)
public void compareJSON(String prefix, org.json.JSONObject expected, org.json.JSONObject actual, JSONCompareResult result) throws org.json.JSONException
org.json.JSONExceptionpublic void compareValues(String prefix, Object expectedValue, Object actualValue, JSONCompareResult result) throws org.json.JSONException
org.json.JSONExceptionpublic void compareJSONArray(String prefix, org.json.JSONArray expected, org.json.JSONArray actual, JSONCompareResult result) throws org.json.JSONException
org.json.JSONExceptionCopyright © 2015. All Rights Reserved.