Class CustomComparator
java.lang.Object
org.skyscreamer.jsonassert.comparator.AbstractComparator
org.skyscreamer.jsonassert.comparator.DefaultComparator
org.skyscreamer.jsonassert.comparator.CustomComparator
- All Implemented Interfaces:
JSONComparator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompareValues(String prefix, Object expectedValue, Object actualValue, JSONCompareResult result) Compares twoObjects on the provided path represented byprefixand updates the result of the comparison in theresultJSONCompareResultobject.Methods inherited from class org.skyscreamer.jsonassert.comparator.DefaultComparator
areNotSameDoubles, areNumbers, compareJSON, compareJSONArrayMethods inherited from class org.skyscreamer.jsonassert.comparator.AbstractComparator
checkJsonObjectKeysActualInExpected, checkJsonObjectKeysExpectedInActual, compareJSON, compareJSON, compareJSONArrayOfJsonObjects, compareJSONArrayOfSimpleValues, compareJSONArrayWithStrictOrder, recursivelyCompareJSONArray
-
Constructor Details
-
CustomComparator
-
-
Method Details
-
compareValues
public void compareValues(String prefix, Object expectedValue, Object actualValue, JSONCompareResult result) Description copied from interface:JSONComparatorCompares twoObjects on the provided path represented byprefixand updates the result of the comparison in theresultJSONCompareResultobject.- Specified by:
compareValuesin interfaceJSONComparator- Overrides:
compareValuesin classDefaultComparator- Parameters:
prefix- the path in the json where the comparison happensexpectedValue- the expected valueactualValue- the actual valueresult- stores the actual state of the comparison result
-