We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c49877 commit f6fe559Copy full SHA for f6fe559
README
@@ -5,7 +5,8 @@ Write JSON unit tests faster and with less code. Great for testing REST interfa
5
6
Write and maintain this:
7
8
- String expected ="{fans:[{id:123,name:\"Corby Page\"},{id:456,name:\"Carter Page\"}]}";
+ String expected ="{fans:[{id:123,name:\"Corby Page\"},"
9
+ + "{id:456,name:\"Carter Page\"}]}";
10
JSONAssert.assertEquals(expected, data, false);
11
12
NOT this:
@@ -32,7 +33,8 @@ NOT this:
32
33
Assert.assertEquals(123, fan2Obj.getInt("id"));
34
}
35
else {
- Assert.fail("Expected either Carter or Corby, Got: " + fan1Obj.getString("name"));
36
+ Assert.fail("Expected either Carter or Corby, Got: "
37
+ + fan1Obj.getString("name"));
38
39
40
Right?
0 commit comments