Skip to content

Commit

Permalink
Add dynamic path parameter support with Map and ordered values
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrillos Nageh Abdelnour Flamon committed Dec 12, 2024
1 parent 4e2f01d commit 1e4d450
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/test/java/com/shaft/api/PathParamTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public void testGetUserByUsernameWithMap() {
// Perform the GET request and validate
api.get(GET_USER_BY_USERNAME)
.setPathParameters(parameters)
.setTargetStatusCode(200)
.perform();

api.assertThatResponse().extractedJsonValue("username").isEqualTo("string");
Expand All @@ -35,7 +34,6 @@ public void testGetUserByUsernameWithMap() {
public void testGetUserByUsernameWithValue() {
api.get(GET_USER_BY_USERNAME)
.setPathParameters("string") // Direct value substitution
.setTargetStatusCode(200)
.perform();

api.assertThatResponse().extractedJsonValue("username").isEqualTo("string");
Expand All @@ -49,7 +47,6 @@ public void testGetUserByUsernameWithValue() {
public void testGetResourceWithMultiplePathParameters() {
api.get(GET_RESOURCE_BY_USERNAME)
.setPathParameters("user", "string") // Multiple values for placeholders
.setTargetStatusCode(200)
.perform();

api.assertThatResponse().extractedJsonValue("username").isEqualTo("string");
Expand Down

0 comments on commit 1e4d450

Please sign in to comment.