Package | Description |
---|---|
org.skyscreamer.jsonassert | |
org.skyscreamer.jsonassert.comparator |
Modifier and Type | Method and Description |
---|---|
static void |
JSONAssert.assertEquals(String expectedStr,
String actualStr,
JSONComparator comparator)
Asserts that the json string provided matches 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 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.
|
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.
|
Constructor and Description |
---|
ArrayValueMatcher(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.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractComparator
This class provides a skeletal implementation of the
JSONComparator
interface, to minimize the effort required to implement this interface. |
class |
ArraySizeComparator
A JSONAssert array size comparator.
|
class |
CustomComparator |
class |
DefaultComparator
This class is the default json comparator implementation.
|
Copyright © 2019. All rights reserved.