File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/test/java/com/typicode/jsonplaceholder/steps Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ public static void verifyResponseBodyAgainstExpectedResponse(String expectedResp
9393 assertEquals (json .replace ("\r " , "" ), response .body ());
9494 }
9595
96- @ Then ("^the response body matches the (\\ d+).{2} post in the \" (.*)\" expected response$" )
96+ @ Then ("^the response body matches the (\\ d+).{2} (?: post|comment|album|todo|user) in the \" (.*)\" expected response$" )
9797 public static void verifyResponseBodyAgainstPartOfExpectedResponse (int index , String expectedResponse ) throws IOException {
9898 String filename = EXPECTED_RESPONSES_DIR + expectedResponse .replaceAll (" " , "" ) + "Response.json" ;
9999 String json = Files .readString (new File (filename ).toPath ());
You can’t perform that action at this time.
0 commit comments