org.skyscreamer.jsonassert.comparator
Interface JSONComparator

All Known Implementing Classes:
AbstractComparator, DefaultComparator

public interface JSONComparator

Interface for comparison handler.

Author:
Ivan Zaytsev 2013-01-04

Method Summary
 JSONCompareResult compareJSON(org.json.JSONArray expected, org.json.JSONArray actual)
           
 JSONCompareResult compareJSON(org.json.JSONObject expected, org.json.JSONObject actual)
           
 void compareJSON(String prefix, org.json.JSONObject expected, org.json.JSONObject actual, JSONCompareResult result)
           
 void compareJSONArray(String prefix, org.json.JSONArray expected, org.json.JSONArray actual, JSONCompareResult result)
           
 void compareValues(String prefix, Object expectedValue, Object actualValue, JSONCompareResult result)
           
 

Method Detail

compareJSON

JSONCompareResult compareJSON(org.json.JSONObject expected,
                              org.json.JSONObject actual)
                              throws org.json.JSONException
Throws:
org.json.JSONException

compareJSON

JSONCompareResult compareJSON(org.json.JSONArray expected,
                              org.json.JSONArray actual)
                              throws org.json.JSONException
Throws:
org.json.JSONException

compareJSON

void compareJSON(String prefix,
                 org.json.JSONObject expected,
                 org.json.JSONObject actual,
                 JSONCompareResult result)
                 throws org.json.JSONException
Throws:
org.json.JSONException

compareValues

void compareValues(String prefix,
                   Object expectedValue,
                   Object actualValue,
                   JSONCompareResult result)
                   throws org.json.JSONException
Throws:
org.json.JSONException

compareJSONArray

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.