Package | Description |
---|---|
org.skyscreamer.jsonassert | |
org.skyscreamer.jsonassert.comparator |
Modifier and Type | Method and Description |
---|---|
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.JSONArray expected,
org.json.JSONArray actual,
JSONCompareMode mode)
Compares JSONArray provided to the expected JSONArray, 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(org.json.JSONObject expected,
org.json.JSONObject actual,
JSONCompareMode mode)
Compares JSONObject provided to the expected JSONObject, and returns the results of the comparison.
|
static JSONCompareResult |
JSONCompare.compareJson(JSONString expected,
JSONString actual)
Compares
JSONString provided to the expected JSONString , checking that the
JSONString.toJSONString() are equal. |
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(String expectedStr,
String actualStr,
JSONCompareMode mode)
Compares JSON string provided to the expected JSON string, and returns the results of the comparison.
|
JSONCompareResult |
JSONCompareResult.fail(String field,
Object expected,
Object actual)
Identify that the comparison failed
|
JSONCompareResult |
JSONCompareResult.fail(String field,
ValueMatcherException exception)
Identify that the comparison failed
|
JSONCompareResult |
JSONCompareResult.missing(String field,
Object expected) |
JSONCompareResult |
JSONCompareResult.unexpected(String field,
Object value) |
Modifier and Type | Method and Description |
---|---|
boolean |
ArrayValueMatcher.equal(String prefix,
T actual,
T expected,
JSONCompareResult result) |
boolean |
LocationAwareValueMatcher.equal(String prefix,
T actual,
T expected,
JSONCompareResult result)
Match actual value with expected value.
|
boolean |
Customization.matches(String prefix,
Object actual,
Object expected,
JSONCompareResult result)
Return true if actual value matches expected value using this
Customization's comparator.
|
Modifier and Type | Method and Description |
---|---|
JSONCompareResult |
JSONComparator.compareJSON(org.json.JSONArray expected,
org.json.JSONArray actual) |
JSONCompareResult |
AbstractComparator.compareJSON(org.json.JSONArray expected,
org.json.JSONArray actual)
Compares JSONArray provided to the expected JSONArray, and returns the results of the comparison.
|
JSONCompareResult |
JSONComparator.compareJSON(org.json.JSONObject expected,
org.json.JSONObject actual) |
JSONCompareResult |
AbstractComparator.compareJSON(org.json.JSONObject expected,
org.json.JSONObject actual)
Compares JSONObject provided to the expected JSONObject, and returns the results of the comparison.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractComparator.checkJsonObjectKeysActualInExpected(String prefix,
org.json.JSONObject expected,
org.json.JSONObject actual,
JSONCompareResult result) |
protected void |
AbstractComparator.checkJsonObjectKeysExpectedInActual(String prefix,
org.json.JSONObject expected,
org.json.JSONObject actual,
JSONCompareResult result) |
void |
JSONComparator.compareJSON(String prefix,
org.json.JSONObject expected,
org.json.JSONObject actual,
JSONCompareResult result) |
void |
DefaultComparator.compareJSON(String prefix,
org.json.JSONObject expected,
org.json.JSONObject actual,
JSONCompareResult result) |
void |
JSONComparator.compareJSONArray(String prefix,
org.json.JSONArray expected,
org.json.JSONArray actual,
JSONCompareResult result) |
void |
ArraySizeComparator.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.
|
void |
DefaultComparator.compareJSONArray(String prefix,
org.json.JSONArray expected,
org.json.JSONArray actual,
JSONCompareResult result) |
protected void |
AbstractComparator.compareJSONArrayOfJsonObjects(String key,
org.json.JSONArray expected,
org.json.JSONArray actual,
JSONCompareResult result) |
protected void |
AbstractComparator.compareJSONArrayOfSimpleValues(String key,
org.json.JSONArray expected,
org.json.JSONArray actual,
JSONCompareResult result) |
protected void |
AbstractComparator.compareJSONArrayWithStrictOrder(String key,
org.json.JSONArray expected,
org.json.JSONArray actual,
JSONCompareResult result) |
void |
JSONComparator.compareValues(String prefix,
Object expectedValue,
Object actualValue,
JSONCompareResult result) |
void |
CustomComparator.compareValues(String prefix,
Object expectedValue,
Object actualValue,
JSONCompareResult result) |
void |
DefaultComparator.compareValues(String prefix,
Object expectedValue,
Object actualValue,
JSONCompareResult result) |
protected void |
AbstractComparator.recursivelyCompareJSONArray(String key,
org.json.JSONArray expected,
org.json.JSONArray actual,
JSONCompareResult result) |
Copyright © 2016. All rights reserved.