We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e79823 commit 114e7c5Copy full SHA for 114e7c5
src/test/java/org/skyscreamer/jsonassert/JSONCompareTest.java
@@ -66,8 +66,8 @@ public void reportsUnexpectedNonNull() throws JSONException {
66
67
@Test
68
public void reportsUnexpectedFieldInNonExtensibleMode() throws JSONException {
69
- JSONCompareResult result = compareJSON("{}", "{\"id\": 3}", NON_EXTENSIBLE);
70
- assertThat(result, failsWithMessage(equalTo("Strict checking failed. Got but did not expect: id")));
+ JSONCompareResult result = compareJSON("{\"obj\": {}}", "{\"obj\": {\"id\": 3}}", NON_EXTENSIBLE);
+ assertThat(result, failsWithMessage(equalTo("Strict checking failed. Got but did not expect: obj.id")));
71
}
72
73
0 commit comments