Skip to content

Commit

Permalink
RolesStepDefs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hdelegido committed Apr 5, 2024
1 parent 00be66e commit 43bee46
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ public void iDeleteTheRoleWithName(String roleName) throws Exception {
.andDo(print());
}

@When("I retrieve the role with name {string}")
public void iRetrieveTheRoleWithName(String roleName) throws Exception {
// Implementation already exists in the RoleStepDefs class
}

@Then("^The response code is (\\d+)$")
public void theResponseCodeIs(int statusCode) throws Exception {
Expand All @@ -98,4 +94,9 @@ public void thereIsARoleWithName(String roleName) {
// Mocking the behavior of the repository to return the existing role
when(roleRepository.findByName(roleName)).thenReturn(existingRole);
}

@When("I retrieve the role with name {string}")
public void iRetrieveTheRoleWithName(String roleName) throws Exception {
// Implementation already exists in the RoleStepDefs class
}
}

0 comments on commit 43bee46

Please sign in to comment.