File tree 1 file changed +3
-3
lines changed
Rest-Assured-Tutorial/src/test/java/com/journaldev/restassured
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ public void post_xml_test() {
26
26
System .out .println ("POST Response\n " + response .asString ());
27
27
// tests
28
28
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" ));
31
31
}
32
32
33
33
@ Test
@@ -44,7 +44,7 @@ public void post_xml_error_test() {
44
44
System .out .println ("POST Error Response\n " + response .asString ());
45
45
// tests
46
46
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" ));
48
48
Assert .assertEquals (response .getStatusCode (),500 );
49
49
}
50
50
You can’t perform that action at this time.
0 commit comments