Skip to content

Commit 0f598da

Browse files
committed
Replace README with README.md
1 parent 35a7ffe commit 0f598da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README renamed to README.md

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

66
Write and maintain this:
77

8+
`
89
JSONObject data = getRESTData("/friends/367.json");
910
String expected ="{friends:[{id:123,name:\"Corby Page\"},"
1011
+ "{id:456,name:\"Carter Page\"}]}";
1112
JSONAssert.assertEquals(expected, data, false);
13+
`
1214

1315
NOT this:
1416

17+
`
1518
JSONObject data = getRESTData("/friends/367.json");
1619
Assert.assertTrue(data.has("friends"));
1720
Object friendsObject = data.get("friends");
@@ -38,5 +41,6 @@ NOT this:
3841
Assert.fail("Expected either Carter or Corby, Got: "
3942
+ friend1Obj.getString("name"));
4043
}
44+
`
4145

4246
Right?

0 commit comments

Comments
 (0)