Skip navigation links
A C D E F G H I J L M O P Q R T U V W 

A

AbstractComparator - Class in org.skyscreamer.jsonassert.comparator
This class provides a skeletal implementation of the JSONComparator interface, to minimize the effort required to implement this interface.
AbstractComparator() - Constructor for class org.skyscreamer.jsonassert.comparator.AbstractComparator
 
allJSONArrays(JSONArray) - Static method in class org.skyscreamer.jsonassert.comparator.JSONCompareUtil
Returns whether all elements in array are JSONArray instances.
allJSONObjects(JSONArray) - Static method in class org.skyscreamer.jsonassert.comparator.JSONCompareUtil
Returns whether all elements in array are JSONObject instances.
allSimpleValues(JSONArray) - Static method in class org.skyscreamer.jsonassert.comparator.JSONCompareUtil
Returns whether all of the elements in the given array are simple values.
appliesToPath(String) - Method in class org.skyscreamer.jsonassert.Customization
 
areNotSameDoubles(Object, Object) - Method in class org.skyscreamer.jsonassert.comparator.DefaultComparator
 
areNumbers(Object, Object) - Method in class org.skyscreamer.jsonassert.comparator.DefaultComparator
 
arrayOfJsonObjectToMap(JSONArray, String) - Static method in class org.skyscreamer.jsonassert.comparator.JSONCompareUtil
Converts the provided JSONArray to a Map of JSONObjects where the key of each object is the value at uniqueKey in each object.
ArraySizeComparator - Class in org.skyscreamer.jsonassert.comparator
A JSONAssert array size comparator.
ArraySizeComparator(JSONCompareMode) - Constructor for class org.skyscreamer.jsonassert.comparator.ArraySizeComparator
Create new ArraySizeComparator.
ArrayValueMatcher<T> - Class in org.skyscreamer.jsonassert
A value matcher for arrays.
ArrayValueMatcher(JSONComparator) - Constructor for class org.skyscreamer.jsonassert.ArrayValueMatcher
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, int) - Constructor for class org.skyscreamer.jsonassert.ArrayValueMatcher
Create ArrayValueMatcher to match specified element in actual array against first element of expected array.
ArrayValueMatcher(JSONComparator, int, int) - Constructor for class org.skyscreamer.jsonassert.ArrayValueMatcher
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.
assertEquals(String, JSONObject, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided matches the expected string.
assertEquals(String, String, JSONObject, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided matches the expected string.
assertEquals(String, JSONObject, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided matches the expected string.
assertEquals(String, String, JSONObject, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided matches the expected string.
assertEquals(String, JSONArray, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided matches the expected string.
assertEquals(String, String, JSONArray, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided matches the expected string.
assertEquals(String, JSONArray, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided matches the expected string.
assertEquals(String, String, JSONArray, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided matches the expected string.
assertEquals(String, String, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided matches the expected string.
assertEquals(String, String, String, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided matches the expected string.
assertEquals(String, String, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided matches the expected string.
assertEquals(String, String, String, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided matches the expected string.
assertEquals(String, String, JSONComparator) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the json string provided matches the expected string.
assertEquals(String, String, String, JSONComparator) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the json string provided matches the expected string.
assertEquals(JSONObject, JSONObject, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided matches the expected JSONObject.
assertEquals(String, JSONObject, JSONObject, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided matches the expected JSONObject.
assertEquals(JSONObject, JSONObject, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided matches the expected JSONObject.
assertEquals(String, JSONObject, JSONObject, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided matches the expected JSONObject.
assertEquals(JSONArray, JSONArray, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided matches the expected JSONArray.
assertEquals(String, JSONArray, JSONArray, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided matches the expected JSONArray.
assertEquals(JSONArray, JSONArray, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided matches the expected JSONArray.
assertEquals(String, JSONArray, JSONArray, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided matches the expected JSONArray.
assertNotEquals(String, JSONObject, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided does not match the expected string.
assertNotEquals(String, String, JSONObject, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided does not match the expected string.
assertNotEquals(String, JSONObject, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided does not match the expected string.
assertNotEquals(String, String, JSONObject, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided does not match the expected string.
assertNotEquals(String, JSONArray, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided does not match the expected string.
assertNotEquals(String, String, JSONArray, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided does not match the expected string.
assertNotEquals(String, JSONArray, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided does not match the expected string.
assertNotEquals(String, String, JSONArray, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided does not match the expected string.
assertNotEquals(String, String, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided does not match the expected string.
assertNotEquals(String, String, String, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided does not match the expected string.
assertNotEquals(String, String, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided does not match the expected string.
assertNotEquals(String, String, String, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided does not match the expected string.
assertNotEquals(String, String, JSONComparator) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the json string provided does not match the expected string.
assertNotEquals(String, String, String, JSONComparator) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the json string provided does not match the expected string.
assertNotEquals(JSONObject, JSONObject, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided does not match the expected JSONObject.
assertNotEquals(String, JSONObject, JSONObject, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided does not match the expected JSONObject.
assertNotEquals(JSONObject, JSONObject, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided does not match the expected JSONObject.
assertNotEquals(String, JSONObject, JSONObject, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONObject provided does not match the expected JSONObject.
assertNotEquals(JSONArray, JSONArray, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided does not match the expected JSONArray.
assertNotEquals(String, JSONArray, JSONArray, boolean) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided does not match the expected JSONArray.
assertNotEquals(JSONArray, JSONArray, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided does not match the expected JSONArray.
assertNotEquals(String, JSONArray, JSONArray, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONAssert
Asserts that the JSONArray provided does not match the expected JSONArray.

C

checkJsonObjectKeysActualInExpected(String, JSONObject, JSONObject, JSONCompareResult) - Method in class org.skyscreamer.jsonassert.comparator.AbstractComparator
 
checkJsonObjectKeysExpectedInActual(String, JSONObject, JSONObject, JSONCompareResult) - Method in class org.skyscreamer.jsonassert.comparator.AbstractComparator
 
compareJSON(JSONObject, JSONObject) - Method in class org.skyscreamer.jsonassert.comparator.AbstractComparator
Compares JSONObject provided to the expected JSONObject, and returns the results of the comparison.
compareJSON(JSONArray, JSONArray) - Method in class org.skyscreamer.jsonassert.comparator.AbstractComparator
Compares JSONArray provided to the expected JSONArray, and returns the results of the comparison.
compareJSON(String, JSONObject, JSONObject, JSONCompareResult) - Method in class org.skyscreamer.jsonassert.comparator.DefaultComparator
 
compareJSON(JSONObject, JSONObject) - Method in interface org.skyscreamer.jsonassert.comparator.JSONComparator
Compares two JSONObjects and returns the result of the comparison in a JSONCompareResult object.
compareJSON(JSONArray, JSONArray) - Method in interface org.skyscreamer.jsonassert.comparator.JSONComparator
Compares two JSONArrays and returns the result of the comparison in a JSONCompareResult object.
compareJSON(String, JSONObject, JSONObject, JSONCompareResult) - Method in interface org.skyscreamer.jsonassert.comparator.JSONComparator
Compares two JSONObjects on the provided path represented by prefix and updates the result of the comparison in the result JSONCompareResult object.
compareJSON(String, String, JSONComparator) - Static method in class org.skyscreamer.jsonassert.JSONCompare
Compares JSON string provided to the expected JSON string using provided comparator, and returns the results of the comparison.
compareJSON(JSONObject, JSONObject, JSONComparator) - Static method in class org.skyscreamer.jsonassert.JSONCompare
Compares JSON object provided to the expected JSON object using provided comparator, and returns the results of the comparison.
compareJSON(JSONArray, JSONArray, JSONComparator) - Static method in class org.skyscreamer.jsonassert.JSONCompare
Compares JSON object provided to the expected JSON object using provided comparator, and returns the results of the comparison.
compareJson(JSONString, JSONString) - Static method in class org.skyscreamer.jsonassert.JSONCompare
Compares JSONString provided to the expected JSONString, checking that the JSONString.toJSONString() are equal.
compareJSON(String, String, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONCompare
Compares JSON string provided to the expected JSON string, and returns the results of the comparison.
compareJSON(JSONObject, JSONObject, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONCompare
Compares JSONObject provided to the expected JSONObject, and returns the results of the comparison.
compareJSON(JSONArray, JSONArray, JSONCompareMode) - Static method in class org.skyscreamer.jsonassert.JSONCompare
Compares JSONArray provided to the expected JSONArray, and returns the results of the comparison.
compareJSONArray(String, JSONArray, JSONArray, JSONCompareResult) - Method in class org.skyscreamer.jsonassert.comparator.ArraySizeComparator
Expected array should consist of either 1 or 2 integer values that define maximum and minimum valid lengths of the actual array.
compareJSONArray(String, JSONArray, JSONArray, JSONCompareResult) - Method in class org.skyscreamer.jsonassert.comparator.DefaultComparator
 
compareJSONArray(String, JSONArray, JSONArray, JSONCompareResult) - Method in interface org.skyscreamer.jsonassert.comparator.JSONComparator
Compares two JSONArrays on the provided path represented by prefix and updates the result of the comparison in the result JSONCompareResult object.
compareJSONArrayOfJsonObjects(String, JSONArray, JSONArray, JSONCompareResult) - Method in class org.skyscreamer.jsonassert.comparator.AbstractComparator
 
compareJSONArrayOfSimpleValues(String, JSONArray, JSONArray, JSONCompareResult) - Method in class org.skyscreamer.jsonassert.comparator.AbstractComparator
 
compareJSONArrayWithStrictOrder(String, JSONArray, JSONArray, JSONCompareResult) - Method in class org.skyscreamer.jsonassert.comparator.AbstractComparator
 
compareValues(String, Object, Object, JSONCompareResult) - Method in class org.skyscreamer.jsonassert.comparator.CustomComparator
 
compareValues(String, Object, Object, JSONCompareResult) - Method in class org.skyscreamer.jsonassert.comparator.DefaultComparator
 
compareValues(String, Object, Object, JSONCompareResult) - Method in interface org.skyscreamer.jsonassert.comparator.JSONComparator
Compares two Objects on the provided path represented by prefix and updates the result of the comparison in the result JSONCompareResult object.
CustomComparator - Class in org.skyscreamer.jsonassert.comparator
 
CustomComparator(JSONCompareMode, Customization...) - Constructor for class org.skyscreamer.jsonassert.comparator.CustomComparator
 
Customization - Class in org.skyscreamer.jsonassert
Associates a custom matcher to a specific jsonpath.
Customization(String, ValueMatcher<Object>) - Constructor for class org.skyscreamer.jsonassert.Customization
 
customization(String, ValueMatcher<Object>) - Static method in class org.skyscreamer.jsonassert.Customization
Creates a new Customization instance for path and comparator.

D

DefaultComparator - Class in org.skyscreamer.jsonassert.comparator
This class is the default json comparator implementation.
DefaultComparator(JSONCompareMode) - Constructor for class org.skyscreamer.jsonassert.comparator.DefaultComparator
 

E

equal(T, T) - Method in class org.skyscreamer.jsonassert.ArrayValueMatcher
 
equal(String, T, T, JSONCompareResult) - Method in class org.skyscreamer.jsonassert.ArrayValueMatcher
 
equal(String, T, T, JSONCompareResult) - Method in interface org.skyscreamer.jsonassert.LocationAwareValueMatcher
Match actual value with expected value.
equal(T, T) - Method in class org.skyscreamer.jsonassert.RegularExpressionValueMatcher
 
equal(T, T) - Method in interface org.skyscreamer.jsonassert.ValueMatcher
Compares the two provided objects whether they are equal.

F

fail(String) - Method in class org.skyscreamer.jsonassert.JSONCompareResult
 
fail(String, Object, Object) - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Identify that the comparison failed
fail(String, ValueMatcherException) - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Identify that the comparison failed
failed() - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Did the comparison fail?
FieldComparisonFailure - Class in org.skyscreamer.jsonassert
Models a failure when comparing two fields.
FieldComparisonFailure(String, Object, Object) - Constructor for class org.skyscreamer.jsonassert.FieldComparisonFailure
 
findUniqueKey(JSONArray) - Static method in class org.skyscreamer.jsonassert.comparator.JSONCompareUtil
Searches for the unique key of the expected JSON array.
formatUniqueKey(String, String, Object) - Static method in class org.skyscreamer.jsonassert.comparator.JSONCompareUtil
 

G

getActual() - Method in class org.skyscreamer.jsonassert.FieldComparisonFailure
 
getActual() - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Deprecated.
getActual() - Method in exception org.skyscreamer.jsonassert.ValueMatcherException
 
getCardinalityMap(Collection<T>) - Static method in class org.skyscreamer.jsonassert.comparator.JSONCompareUtil
Creates a cardinality map from coll.
getExpected() - Method in class org.skyscreamer.jsonassert.FieldComparisonFailure
 
getExpected() - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Deprecated.
getExpected() - Method in exception org.skyscreamer.jsonassert.ValueMatcherException
 
getField() - Method in class org.skyscreamer.jsonassert.FieldComparisonFailure
 
getField() - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Deprecated.
getFieldFailures() - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Get the list of failures on field comparisons
getFieldMissing() - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Get the list of missed on field comparisons
getFieldUnexpected() - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Get the list of failures on field comparisons
getKeys(JSONObject) - Static method in class org.skyscreamer.jsonassert.comparator.JSONCompareUtil
Collects all keys in jsonObject.
getMessage() - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Result message

H

hasStrictOrder() - Method in enum org.skyscreamer.jsonassert.JSONCompareMode
Strict order required

I

isExtensible() - Method in enum org.skyscreamer.jsonassert.JSONCompareMode
Is extensible
isFailureOnField() - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Check if comparison failed on any particular fields
isMissingOnField() - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Check if comparison failed with missing on any particular fields
isSimpleValue(Object) - Static method in class org.skyscreamer.jsonassert.comparator.JSONCompareUtil
Returns whether the given object is a simple value: not JSONObject and not JSONArray.
isUnexpectedOnField() - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Check if comparison failed with unexpected on any particular fields
isUsableAsUniqueKey(String, JSONArray) - Static method in class org.skyscreamer.jsonassert.comparator.JSONCompareUtil
Looks to see if candidate field is a possible unique key across a array of objects.

J

jsonArrayToList(JSONArray) - Static method in class org.skyscreamer.jsonassert.comparator.JSONCompareUtil
Converts the given JSONArray to a list of Objects.
JSONAssert - Class in org.skyscreamer.jsonassert
A set of assertion methods useful for writing tests methods that return JSON.
JSONComparator - Interface in org.skyscreamer.jsonassert.comparator
Interface for comparison handler.
JSONCompare - Class in org.skyscreamer.jsonassert
Provides API to compare two JSON entities.
JSONCompareMode - Enum in org.skyscreamer.jsonassert
These different modes define different behavior for the comparison of JSON for testing.
JSONCompareResult - Class in org.skyscreamer.jsonassert
Bean for holding results from JSONCompare.
JSONCompareResult() - Constructor for class org.skyscreamer.jsonassert.JSONCompareResult
Default constructor.
JSONCompareUtil - Class in org.skyscreamer.jsonassert.comparator
Utility class that contains Json manipulation methods.
JSONParser - Class in org.skyscreamer.jsonassert
Simple JSON parsing utility.
JSONString - Interface in org.json
The JSONString interface allows a toJSONString() method so that a class can change the behavior of JSONObject.toString(), JSONArray.toString(), and JSONWriter.value(Object).

L

LocationAwareValueMatcher<T> - Interface in org.skyscreamer.jsonassert
A ValueMatcher extension that provides location in form of prefix to the equals method.

M

matches(Object, Object) - Method in class org.skyscreamer.jsonassert.Customization
Deprecated.
matches(String, Object, Object, JSONCompareResult) - Method in class org.skyscreamer.jsonassert.Customization
Return true if actual value matches expected value using this Customization's comparator.
missing(String, Object) - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Identify the missing field

O

org.json - package org.json
 
org.skyscreamer.jsonassert - package org.skyscreamer.jsonassert
 
org.skyscreamer.jsonassert.comparator - package org.skyscreamer.jsonassert.comparator
 

P

parseJSON(String) - Static method in class org.skyscreamer.jsonassert.JSONParser
Takes a JSON string and returns either a JSONObject or JSONArray, depending on whether the string represents an object or an array.
passed() - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Did the comparison pass?

Q

qualify(String, String) - Static method in class org.skyscreamer.jsonassert.comparator.JSONCompareUtil
 

R

recursivelyCompareJSONArray(String, JSONArray, JSONArray, JSONCompareResult) - Method in class org.skyscreamer.jsonassert.comparator.AbstractComparator
 
RegularExpressionValueMatcher<T> - Class in org.skyscreamer.jsonassert
A JSONassert value matcher that matches actual value to regular expression.
RegularExpressionValueMatcher() - Constructor for class org.skyscreamer.jsonassert.RegularExpressionValueMatcher
Create RegularExpressionValueMatcher in which the pattern the actual value must match with be specified dynamically from the expected string passed to this matcher in the equals method.
RegularExpressionValueMatcher(String) - Constructor for class org.skyscreamer.jsonassert.RegularExpressionValueMatcher
Create RegularExpressionValueMatcher with specified pattern.

T

toJSONString() - Method in interface org.json.JSONString
The toJSONString method allows a class to produce its own JSON serialization.
toString() - Method in class org.skyscreamer.jsonassert.JSONCompareResult
 

U

unexpected(String, Object) - Method in class org.skyscreamer.jsonassert.JSONCompareResult
Identify unexpected field

V

ValueMatcher<T> - Interface in org.skyscreamer.jsonassert
Represents a value matcher that can compare two objects for equality.
ValueMatcherException - Exception in org.skyscreamer.jsonassert
Exception that may be thrown by ValueMatcher subclasses to provide more detail on why matches method failed.
ValueMatcherException(String, String, String) - Constructor for exception org.skyscreamer.jsonassert.ValueMatcherException
Create new ValueMatcherException
ValueMatcherException(String, Throwable, String, String) - Constructor for exception org.skyscreamer.jsonassert.ValueMatcherException
Create new ValueMatcherException
valueOf(String) - Static method in enum org.skyscreamer.jsonassert.JSONCompareMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.skyscreamer.jsonassert.JSONCompareMode
Returns an array containing the constants of this enum type, in the order they are declared.

W

withExtensible(boolean) - Method in enum org.skyscreamer.jsonassert.JSONCompareMode
Get the equivalent JSONCompareMode with or without extensibility.
withStrictOrdering(boolean) - Method in enum org.skyscreamer.jsonassert.JSONCompareMode
Get the equivalent JSONCompareMode with or without strict ordering.
A C D E F G H I J L M O P Q R T U V W 
Skip navigation links

Copyright © 2017. All rights reserved.