org.skyscreamer.jsonassert.comparator
Class CustomComparator

java.lang.Object
  extended by org.skyscreamer.jsonassert.comparator.AbstractComparator
      extended by org.skyscreamer.jsonassert.comparator.DefaultComparator
          extended by org.skyscreamer.jsonassert.comparator.CustomComparator
All Implemented Interfaces:
JSONComparator

public class CustomComparator
extends DefaultComparator


Constructor Summary
CustomComparator(JSONCompareMode mode, Customization... customizations)
           
 
Method Summary
 void compareValues(String prefix, Object expectedValue, Object actualValue, JSONCompareResult result)
           
 
Methods inherited from class org.skyscreamer.jsonassert.comparator.DefaultComparator
compareJSON, compareJSONArray
 
Methods inherited from class org.skyscreamer.jsonassert.comparator.AbstractComparator
checkJsonObjectKeysActualInExpected, checkJsonObjectKeysExpectedInActual, compareJSON, compareJSON, compareJSONArrayOfJsonObjects, compareJSONArrayOfSimpleValues, compareJSONArrayWithStrictOrder, recursivelyCompareJSONArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomComparator

public CustomComparator(JSONCompareMode mode,
                        Customization... customizations)
Method Detail

compareValues

public void compareValues(String prefix,
                          Object expectedValue,
                          Object actualValue,
                          JSONCompareResult result)
                   throws org.json.JSONException
Specified by:
compareValues in interface JSONComparator
Overrides:
compareValues in class DefaultComparator
Throws:
org.json.JSONException


Copyright © 2013. All Rights Reserved.