Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
JSONComparator |
|
| 1.0;1 |
1 | package uk.co.datumedge.hamcrest.json; | |
2 | ||
3 | import org.json.JSONException; | |
4 | ||
5 | /** | |
6 | * Compares JSON documents. | |
7 | * | |
8 | * @param <T> the document type, typically {@code JSONObject} or {@code JSONArray}. | |
9 | */ | |
10 | public interface JSONComparator<T> { | |
11 | JSONComparisonResult compare(T expected, T actual) throws JSONException; | |
12 | } |