Package | Description |
---|---|
org.skyscreamer.jsonassert | |
org.skyscreamer.jsonassert.comparator |
Modifier and Type | Method and Description |
---|---|
static JSONCompareMode |
JSONCompareMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JSONCompareMode[] |
JSONCompareMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
JSONCompareMode |
JSONCompareMode.withExtensible(boolean extensible)
Get the equivalent
JSONCompareMode with or without extensibility. |
JSONCompareMode |
JSONCompareMode.withStrictOrdering(boolean strictOrdering)
Get the equivalent
JSONCompareMode with or without strict ordering. |
Modifier and Type | Method and Description |
---|---|
static void |
JSONAssert.assertEquals(org.json.JSONArray expected,
org.json.JSONArray actual,
JSONCompareMode compareMode)
Asserts that the JSONArray provided matches the expected JSONArray.
|
static void |
JSONAssert.assertEquals(org.json.JSONObject expected,
org.json.JSONObject actual,
JSONCompareMode compareMode)
Asserts that the JSONObject provided matches the expected JSONObject.
|
static void |
JSONAssert.assertEquals(String expectedStr,
org.json.JSONArray actual,
JSONCompareMode compareMode)
Asserts that the JSONArray provided matches the expected string.
|
static void |
JSONAssert.assertEquals(String expectedStr,
org.json.JSONObject actual,
JSONCompareMode compareMode)
Asserts that the JSONObject provided matches the expected string.
|
static void |
JSONAssert.assertEquals(String expectedStr,
String actualStr,
JSONCompareMode compareMode)
Asserts that the JSONArray provided matches the expected string.
|
static void |
JSONAssert.assertNotEquals(org.json.JSONArray expected,
org.json.JSONArray actual,
JSONCompareMode compareMode)
Asserts that the JSONArray provided does not match the expected JSONArray.
|
static void |
JSONAssert.assertNotEquals(org.json.JSONObject expected,
org.json.JSONObject actual,
JSONCompareMode compareMode)
Asserts that the JSONObject provided does not match the expected JSONObject.
|
static void |
JSONAssert.assertNotEquals(String expectedStr,
org.json.JSONArray actual,
JSONCompareMode compareMode)
Asserts that the JSONArray provided does not match the expected string.
|
static void |
JSONAssert.assertNotEquals(String expectedStr,
org.json.JSONObject actual,
JSONCompareMode compareMode)
Asserts that the JSONObject provided does not match the expected string.
|
static void |
JSONAssert.assertNotEquals(String expectedStr,
String actualStr,
JSONCompareMode compareMode)
Asserts that the JSONArray provided does not match the expected string.
|
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,
JSONCompareMode mode)
Compares JSONObject provided to the expected JSONObject, 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.
|
Constructor and Description |
---|
ArraySizeComparator(JSONCompareMode mode)
Create new ArraySizeComparator.
|
CustomComparator(JSONCompareMode mode,
Customization... customizations) |
DefaultComparator(JSONCompareMode mode) |
Copyright © 2018. All rights reserved.