Skip to content

Commit

Permalink
Merge pull request #47 from ballerina-guides/pubudu-patch-1
Browse files Browse the repository at this point in the history
Fix test case
  • Loading branch information
keizer619 authored Aug 8, 2018
2 parents 5d0a55c + 6b6189e commit ab7c097
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guide/restful_service/tests/order_mgt_service_test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function testResourceAddOrder() {
// Check whether the response is as expected.
json resPayload = check response.getJsonPayload();
test:assertEquals(resPayload.toString(),
"{\"status\":\"Order Created.\",\"orderId\":\"100500\"}", msg = "Response mismatch!");
"{\"status\":\"Order Created.\", \"orderId\":\"100500\"}", msg = "Response mismatch!");
}

@test:Config {
Expand All @@ -58,7 +58,7 @@ function testResourceUpdateOrder() {
// Check whether the response is as expected.
json resPayload = check response.getJsonPayload();
test:assertEquals(resPayload.toString(),
"{\"Order\":{\"ID\":\"100500\",\"Name\":\"XYZ\",\"Description\":\"Updated order.\"}}",
"{\"Order\":{\"ID\":\"100500\", \"Name\":\"XYZ\", \"Description\":\"Updated order.\"}}",
msg = "Response mismatch!");
}

Expand All @@ -75,7 +75,7 @@ function testResourceFindOrder() {
// Check whether the response is as expected.
json resPayload = check response.getJsonPayload();
test:assertEquals(resPayload.toString(),
"{\"Order\":{\"ID\":\"100500\",\"Name\":\"XYZ\",\"Description\":\"Updated order.\"}}",
"{\"Order\":{\"ID\":\"100500\", \"Name\":\"XYZ\", \"Description\":\"Updated order.\"}}",
msg = "Response mismatch!");
}

Expand Down

0 comments on commit ab7c097

Please sign in to comment.