From 54b8b99873c5d66b3e4be96d4731801c7543239b Mon Sep 17 00:00:00 2001 From: IndexZero Date: Thu, 20 Feb 2025 15:04:25 +0300 Subject: [PATCH] Changed tests --- .../com/indexzero/finals/EmployeeControllerTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/com/indexzero/finals/EmployeeControllerTests.java b/src/test/java/com/indexzero/finals/EmployeeControllerTests.java index a75f93a..2fa99db 100644 --- a/src/test/java/com/indexzero/finals/EmployeeControllerTests.java +++ b/src/test/java/com/indexzero/finals/EmployeeControllerTests.java @@ -61,12 +61,12 @@ class EmployeeControllerTests { @Test void lockAndUnlockUser() throws Exception { this.mockMvc.perform( - patch("/api/employee/ipetrov/blocked") + patch("/api/employee/ipetrov/change_state") .with(httpBasic("pivanov", "HelloWorld1234"))) .andDo(print()) .andExpect(status().isOk()); this.mockMvc.perform( - patch("/api/employee/ipetrov/active") + patch("/api/employee/ipetrov/change_state") .with(httpBasic("pivanov", "HelloWorld1234"))) .andDo(print()) .andExpect(status().isOk()); @@ -75,12 +75,12 @@ class EmployeeControllerTests { @Test void lockAndUnlockUserNotFound() throws Exception { this.mockMvc.perform( - patch("/api/employee/PetrTestovich/blocked") + patch("/api/employee/PetrTestovich/change_state") .with(httpBasic("pivanov", "HelloWorld1234"))) .andDo(print()) .andExpect(status().isNotFound()); this.mockMvc.perform( - patch("/api/employee/PetrTestovich/active") + patch("/api/employee/PetrTestovich/change_state") .with(httpBasic("pivanov", "HelloWorld1234"))) .andDo(print()) .andExpect(status().isNotFound());