diff --git a/src/main/java/org/isf/therapy/rest/TherapyController.java b/src/main/java/org/isf/therapy/rest/TherapyController.java index 1ce0f66c..f2ba54e8 100644 --- a/src/main/java/org/isf/therapy/rest/TherapyController.java +++ b/src/main/java/org/isf/therapy/rest/TherapyController.java @@ -37,8 +37,6 @@ import org.isf.therapy.model.TherapyRow; import org.isf.utils.exception.OHServiceException; import org.isf.utils.exception.model.OHExceptionMessage; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.DeleteMapping; diff --git a/src/test/java/org/isf/users/rest/UserControllerTest.java b/src/test/java/org/isf/users/rest/UserControllerTest.java index ee524c43..e78af69a 100644 --- a/src/test/java/org/isf/users/rest/UserControllerTest.java +++ b/src/test/java/org/isf/users/rest/UserControllerTest.java @@ -21,7 +21,24 @@ */ package org.isf.users.rest; -import com.fasterxml.jackson.databind.ObjectMapper; +import static org.hamcrest.Matchers.containsString; +import static org.mockito.Mockito.any; +import static org.mockito.Mockito.doNothing; +import static org.mockito.Mockito.never; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import static org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.user; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put; +import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.log; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; + +import java.util.Collections; +import java.util.List; + import org.isf.OpenHospitalApiApplication; import org.isf.menu.manager.UserBrowsingManager; import org.isf.menu.model.User; @@ -46,17 +63,7 @@ import org.springframework.security.test.context.support.WithMockUser; import org.springframework.test.web.servlet.MockMvc; -import java.util.Collections; -import java.util.List; - -import static org.hamcrest.Matchers.containsString; -import static org.mockito.ArgumentMatchers.any; -import static org.mockito.Mockito.*; -import static org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.user; -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*; -import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.log; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import com.fasterxml.jackson.databind.ObjectMapper; @SpringBootTest(classes = OpenHospitalApiApplication.class) @AutoConfigureMockMvc