From 96a77f4284fd56f5c26e0a202279b370acc3c9df Mon Sep 17 00:00:00 2001 From: jkuznik Date: Mon, 2 Dec 2024 08:38:43 +0100 Subject: [PATCH] Update tests --- .../ateam/disasteralerts/disaster/DisasteralertIT.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/test/java/pl/ateam/disasteralerts/disaster/DisasteralertIT.java b/src/test/java/pl/ateam/disasteralerts/disaster/DisasteralertIT.java index bd05654..e824e01 100644 --- a/src/test/java/pl/ateam/disasteralerts/disaster/DisasteralertIT.java +++ b/src/test/java/pl/ateam/disasteralerts/disaster/DisasteralertIT.java @@ -4,10 +4,13 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; +import pl.ateam.disasteralerts.API.WeatherMonitoringFacade; import pl.ateam.disasteralerts.disaster.enums.DisasterStatus; import pl.ateam.disasteralerts.security.AppUser; +import pl.ateam.disasteralerts.user.UserFacade; import pl.ateam.disasteralerts.user.dto.UserDTO; import java.util.List; @@ -21,9 +24,15 @@ public class DisasteralertIT extends PSQLTestConatiner { @Autowired DisasterRepository disasterRepository; + @Autowired + UserFacade userFacade; + @Autowired MockMvc mockMvc; + @MockBean + WeatherMonitoringFacade weatherMonitoringFacade; + AppUser appUser = getTestAppUser(); @BeforeEach