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, recursivelyCompareJSONArray
public DefaultComparator(JSONCompareMode mode)
public void compareJSON(String prefix, org.json.JSONObject expected, org.json.JSONObject actual, JSONCompareResult result) throws org.json.JSONException
org.json.JSONException
public void compareValues(String prefix, Object expectedValue, Object actualValue, JSONCompareResult result) throws org.json.JSONException
org.json.JSONException
public void compareJSONArray(String prefix, org.json.JSONArray expected, org.json.JSONArray actual, JSONCompareResult result) throws org.json.JSONException
org.json.JSONException
Copyright © 2019. All rights reserved.