Uses of Class
org.skyscreamer.jsonassert.JSONCompareResult
Packages that use JSONCompareResult
-
Uses of JSONCompareResult in org.skyscreamer.jsonassert
Methods in org.skyscreamer.jsonassert that return JSONCompareResultModifier and TypeMethodDescriptionstatic JSONCompareResultJSONCompare.compareJson(org.json.JSONString expected, org.json.JSONString actual) ComparesJSONStringprovided to the expectedJSONString, checking that theJSONString.toJSONString()are equal.static JSONCompareResultJSONCompare.compareJSON(String expectedStr, String actualStr, JSONComparator comparator) Compares JSON string provided to the expected JSON string using provided comparator, and returns the results of the comparison.static JSONCompareResultJSONCompare.compareJSON(String expectedStr, String actualStr, JSONCompareMode mode) Compares JSON string provided to the expected JSON string, and returns the results of the comparison.static JSONCompareResultJSONCompare.compareJSON(org.json.JSONArray expected, org.json.JSONArray actual, JSONComparator comparator) Compares JSON object provided to the expected JSON object using provided comparator, and returns the results of the comparison.static JSONCompareResultJSONCompare.compareJSON(org.json.JSONArray expected, org.json.JSONArray actual, JSONCompareMode mode) Compares JSONArray provided to the expected JSONArray, and returns the results of the comparison.static JSONCompareResultJSONCompare.compareJSON(org.json.JSONObject expected, org.json.JSONObject actual, JSONComparator comparator) Compares JSON object provided to the expected JSON object using provided comparator, and returns the results of the comparison.static JSONCompareResultJSONCompare.compareJSON(org.json.JSONObject expected, org.json.JSONObject actual, JSONCompareMode mode) Compares JSONObject provided to the expected JSONObject, and returns the results of the comparison.Identify that the comparison failedJSONCompareResult.fail(String field, ValueMatcherException exception) Identify that the comparison failedIdentify the missing fieldJSONCompareResult.unexpected(String field, Object actual) Identify unexpected fieldMethods in org.skyscreamer.jsonassert with parameters of type JSONCompareResultModifier and TypeMethodDescriptionbooleanArrayValueMatcher.equal(String prefix, T actual, T expected, JSONCompareResult result) booleanLocationAwareValueMatcher.equal(String prefix, T actual, T expected, JSONCompareResult result) Match actual value with expected value.booleanCustomization.matches(String prefix, Object actual, Object expected, JSONCompareResult result) Return true if actual value matches expected value using this Customization's comparator. -
Uses of JSONCompareResult in org.skyscreamer.jsonassert.comparator
Methods in org.skyscreamer.jsonassert.comparator that return JSONCompareResultModifier and TypeMethodDescriptionfinal JSONCompareResultAbstractComparator.compareJSON(org.json.JSONArray expected, org.json.JSONArray actual) Compares JSONArray provided to the expected JSONArray, and returns the results of the comparison.final JSONCompareResultAbstractComparator.compareJSON(org.json.JSONObject expected, org.json.JSONObject actual) Compares JSONObject provided to the expected JSONObject, and returns the results of the comparison.JSONComparator.compareJSON(org.json.JSONArray expected, org.json.JSONArray actual) Compares twoJSONArrays and returns the result of the comparison in aJSONCompareResultobject.JSONComparator.compareJSON(org.json.JSONObject expected, org.json.JSONObject actual) Compares twoJSONObjects and returns the result of the comparison in aJSONCompareResultobject.Methods in org.skyscreamer.jsonassert.comparator with parameters of type JSONCompareResultModifier and TypeMethodDescriptionprotected voidAbstractComparator.checkJsonObjectKeysActualInExpected(String prefix, org.json.JSONObject expected, org.json.JSONObject actual, JSONCompareResult result) protected voidAbstractComparator.checkJsonObjectKeysExpectedInActual(String prefix, org.json.JSONObject expected, org.json.JSONObject actual, JSONCompareResult result) voidDefaultComparator.compareJSON(String prefix, org.json.JSONObject expected, org.json.JSONObject actual, JSONCompareResult result) voidJSONComparator.compareJSON(String prefix, org.json.JSONObject expected, org.json.JSONObject actual, JSONCompareResult result) Compares twoJSONObjects on the provided path represented byprefixand updates the result of the comparison in theresultJSONCompareResultobject.voidArraySizeComparator.compareJSONArray(String prefix, org.json.JSONArray expected, org.json.JSONArray actual, JSONCompareResult result) Expected array should consist of either 1 or 2 integer values that define maximum and minimum valid lengths of the actual array.voidDefaultComparator.compareJSONArray(String prefix, org.json.JSONArray expected, org.json.JSONArray actual, JSONCompareResult result) voidJSONComparator.compareJSONArray(String prefix, org.json.JSONArray expected, org.json.JSONArray actual, JSONCompareResult result) Compares twoJSONArrays on the provided path represented byprefixand updates the result of the comparison in theresultJSONCompareResultobject.protected voidAbstractComparator.compareJSONArrayOfJsonObjects(String key, org.json.JSONArray expected, org.json.JSONArray actual, JSONCompareResult result) protected voidAbstractComparator.compareJSONArrayOfSimpleValues(String key, org.json.JSONArray expected, org.json.JSONArray actual, JSONCompareResult result) protected voidAbstractComparator.compareJSONArrayWithStrictOrder(String key, org.json.JSONArray expected, org.json.JSONArray actual, JSONCompareResult result) voidCustomComparator.compareValues(String prefix, Object expectedValue, Object actualValue, JSONCompareResult result) voidDefaultComparator.compareValues(String prefix, Object expectedValue, Object actualValue, JSONCompareResult result) voidJSONComparator.compareValues(String prefix, Object expectedValue, Object actualValue, JSONCompareResult result) Compares twoObjects on the provided path represented byprefixand updates the result of the comparison in theresultJSONCompareResultobject.protected voidAbstractComparator.recursivelyCompareJSONArray(String key, org.json.JSONArray expected, org.json.JSONArray actual, JSONCompareResult result)