Skip to content

Commit

Permalink
Adding a bit longer form example
Browse files Browse the repository at this point in the history
  • Loading branch information
joakime committed Jan 20, 2025
1 parent 48fe422 commit 7ac26ba
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,14 @@ public void testRequestNoForm(String path, int expectedStatus) throws IOExceptio
*/
@ParameterizedTest
@CsvSource(delimiter = '|', textBlock = """
# Path | Form Data | Expected Response Status
/read/ | co=Canada | 200
/read/?name=Bob | co=Aussie | 200
/no-read/ | co=Swiss | 200
/no-read/?name=Carl | co=Aruba | 200
/no-read/?name=Anne&role=Chef | co=Sweden | 200
/other/ | co=France | 404
# Path | Form Data | Expected Response Status
/read/ | co=Canada | 200
/read/?name=Bruce | co=Aussie | 200
/read/?name=Jack | co=Aussie&region=NSW | 200
/no-read/ | co=Swiss | 200
/no-read/?name=Carl | co=Aruba | 200
/no-read/?name=Anne&role=Chef | co=Sweden | 200
/other/ | co=France | 404
""")
public void testRequestUrlForm(String path, String formdata, int expectedStatus) throws IOException, InterruptedException
{
Expand Down

0 comments on commit 7ac26ba

Please sign in to comment.