From 43bee4614c8424c61f55599f63a42f5b8c88e30f Mon Sep 17 00:00:00 2001 From: Hdelegido Date: Fri, 5 Apr 2024 22:51:27 +0200 Subject: [PATCH] RolesStepDefs --- .../udl/eps/softarch/demo/steps/ManageRolesStepDefs.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/test/java/cat/udl/eps/softarch/demo/steps/ManageRolesStepDefs.java b/src/test/java/cat/udl/eps/softarch/demo/steps/ManageRolesStepDefs.java index 1ebe128..b6221c6 100644 --- a/src/test/java/cat/udl/eps/softarch/demo/steps/ManageRolesStepDefs.java +++ b/src/test/java/cat/udl/eps/softarch/demo/steps/ManageRolesStepDefs.java @@ -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 { @@ -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 + } }