Uses of Interface
org.skyscreamer.jsonassert.comparator.JSONComparator
-
Uses of JSONComparator in org.skyscreamer.jsonassert
Modifier and TypeMethodDescriptionstatic void
JSONAssert.assertEquals
(String message, String expectedStr, String actualStr, JSONComparator comparator) Asserts that the json string provided matches the expected string.static void
JSONAssert.assertEquals
(String expectedStr, String actualStr, JSONComparator comparator) Asserts that the json string provided matches the expected string.static void
JSONAssert.assertEquals
(String message, org.json.JSONObject expected, org.json.JSONObject actual, JSONComparator comparator) Asserts that the JSONObject provided matches the expected JSONObject.static void
JSONAssert.assertEquals
(org.json.JSONObject expected, org.json.JSONObject actual, JSONComparator comparator) Asserts that the JSONObject provided matches the expected JSONObject.static void
JSONAssert.assertNotEquals
(String message, String expectedStr, String actualStr, JSONComparator comparator) Asserts that the json string provided does not match the expected string.static void
JSONAssert.assertNotEquals
(String expectedStr, String actualStr, JSONComparator comparator) Asserts that the json string provided does not match the expected string.static void
JSONAssert.assertNotEquals
(String message, org.json.JSONObject expected, org.json.JSONObject actual, JSONComparator comparator) Asserts that the JSONObject provided does not match the expected JSONObject.static void
JSONAssert.assertNotEquals
(org.json.JSONObject expected, org.json.JSONObject actual, JSONComparator comparator) Asserts that the JSONObject provided does not match the expected JSONObject.static JSONCompareResult
JSONCompare.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 JSONCompareResult
JSONCompare.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 JSONCompareResult
JSONCompare.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.ModifierConstructorDescriptionArrayValueMatcher
(JSONComparator comparator) Create ArrayValueMatcher to match every element in actual array against elements taken in sequence from expected array, repeating from start of expected array if necessary.ArrayValueMatcher
(JSONComparator comparator, int index) Create ArrayValueMatcher to match specified element in actual array against first element of expected array.ArrayValueMatcher
(JSONComparator comparator, int from, int to) Create ArrayValueMatcher to match every element in specified range (inclusive) from actual array against elements taken in sequence from expected array, repeating from start of expected array if necessary. -
Uses of JSONComparator in org.skyscreamer.jsonassert.comparator
Modifier and TypeClassDescriptionclass
This class provides a skeletal implementation of theJSONComparator
interface, to minimize the effort required to implement this interface.class
A JSONAssert array size comparator.class
class
This class is the default json comparator implementation.