org.skyscreamer.jsonassert.comparator
Class DefaultComparator
java.lang.Object
org.skyscreamer.jsonassert.comparator.AbstractComparator
org.skyscreamer.jsonassert.comparator.DefaultComparator
- All Implemented Interfaces:
- JSONComparator
- Direct Known Subclasses:
- CustomComparator
public class DefaultComparator
- extends AbstractComparator
This class is the default json comparator implementation.
Comparison is performed according to JSONCompareMode that is passed as constructor's argument.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultComparator
public DefaultComparator(JSONCompareMode mode)
compareJSON
public void compareJSON(String prefix,
org.json.JSONObject expected,
org.json.JSONObject actual,
JSONCompareResult result)
throws org.json.JSONException
- Throws:
org.json.JSONException
compareValues
public void compareValues(String prefix,
Object expectedValue,
Object actualValue,
JSONCompareResult result)
throws org.json.JSONException
- Throws:
org.json.JSONException
compareJSONArray
public void compareJSONArray(String prefix,
org.json.JSONArray expected,
org.json.JSONArray actual,
JSONCompareResult result)
throws org.json.JSONException
- Throws:
org.json.JSONException
Copyright © 2013. All Rights Reserved.