Skip to content

Commit f6fe559

Browse files
committed
Update README
1 parent 4c49877 commit f6fe559

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Write JSON unit tests faster and with less code. Great for testing REST interfa
55

66
Write and maintain this:
77

8-
String expected ="{fans:[{id:123,name:\"Corby Page\"},{id:456,name:\"Carter Page\"}]}";
8+
String expected ="{fans:[{id:123,name:\"Corby Page\"},"
9+
+ "{id:456,name:\"Carter Page\"}]}";
910
JSONAssert.assertEquals(expected, data, false);
1011

1112
NOT this:
@@ -32,7 +33,8 @@ NOT this:
3233
Assert.assertEquals(123, fan2Obj.getInt("id"));
3334
}
3435
else {
35-
Assert.fail("Expected either Carter or Corby, Got: " + fan1Obj.getString("name"));
36+
Assert.fail("Expected either Carter or Corby, Got: "
37+
+ fan1Obj.getString("name"));
3638
}
3739

3840
Right?

0 commit comments

Comments
 (0)