Skip to content

Commit acc499e

Browse files
author
Pankaj Kumar
committed
Fixing test code
1 parent 405bb2a commit acc499e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Rest-Assured-Tutorial/src/test/java/com/journaldev/restassured/RESTAssuredXMLTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public void post_xml_test() {
2626
System.out.println("POST Response\n" + response.asString());
2727
// tests
2828
Assert.assertEquals(response.getStatusCode(),200);
29-
response.then().body("empRequest.id", Matchers.is("1"));
30-
response.then().body("empRequest.name", Matchers.is("PK"));
29+
response.then().body("empResponse.id", Matchers.is("1"));
30+
response.then().body("empResponse.name", Matchers.is("PK"));
3131
}
3232

3333
@Test
@@ -44,7 +44,7 @@ public void post_xml_error_test() {
4444
System.out.println("POST Error Response\n" + response.asString());
4545
// tests
4646
response.then().body("errorResponse.errorId", Matchers.is("2"));
47-
response.then().body("empRequest.errorCode", Matchers.is("Wrong ID"));
47+
response.then().body("errorResponse.errorCode", Matchers.is("Wrong ID"));
4848
Assert.assertEquals(response.getStatusCode(),500);
4949
}
5050

0 commit comments

Comments
 (0)