We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35a7ffe commit 0f598daCopy full SHA for 0f598da
README README.mdREADME renamed to README.md
@@ -5,13 +5,16 @@ Write JSON unit tests faster and with less code. Great for testing REST interfa
5
6
Write and maintain this:
7
8
+`
9
JSONObject data = getRESTData("/friends/367.json");
10
String expected ="{friends:[{id:123,name:\"Corby Page\"},"
11
+ "{id:456,name:\"Carter Page\"}]}";
12
JSONAssert.assertEquals(expected, data, false);
13
14
15
NOT this:
16
17
18
19
Assert.assertTrue(data.has("friends"));
20
Object friendsObject = data.get("friends");
@@ -38,5 +41,6 @@ NOT this:
38
41
Assert.fail("Expected either Carter or Corby, Got: "
39
42
+ friend1Obj.getString("name"));
40
43
}
44
45
46
Right?
0 commit comments