Skip to content
Snippets Groups Projects
Commit 2b3de2e0 authored by Thiemo Belmega's avatar Thiemo Belmega
Browse files

Improve fail message for assertEqualJSONContent()

parent 5c176a38
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ public class JSONUtil {
public static void assertEqualJSONContent(JSONObject expectedJson,
JSONObject actualJson) throws JSONException {
if (!equalJSONContent(expectedJson, actualJson)) {
fail();
fail("Expected: \n" + expectedJson.toString(4) + "\n\n But was: " + actualJson.toString(4));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment