From 510674efda16ad4c0e41697910f1469e21956220 Mon Sep 17 00:00:00 2001 From: rabeaM Date: Mon, 9 Dec 2024 11:29:41 +0100 Subject: [PATCH] Update --- .../tests/MessageControllerIT.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/test/java/org/highmed/numportal/integrationtesting/tests/MessageControllerIT.java b/src/test/java/org/highmed/numportal/integrationtesting/tests/MessageControllerIT.java index 1f8a5eba..a41dc4a3 100644 --- a/src/test/java/org/highmed/numportal/integrationtesting/tests/MessageControllerIT.java +++ b/src/test/java/org/highmed/numportal/integrationtesting/tests/MessageControllerIT.java @@ -1,21 +1,17 @@ package org.highmed.numportal.integrationtesting.tests; -import org.highmed.numportal.TestNumPortalApplication; import org.highmed.numportal.domain.model.Message; import org.highmed.numportal.domain.model.MessageType; +import org.highmed.numportal.domain.model.admin.UserDetails; import org.highmed.numportal.domain.repository.MessageRepository; +import org.highmed.numportal.domain.repository.UserDetailsRepository; import org.highmed.numportal.integrationtesting.security.WithMockNumUser; import lombok.SneakyThrows; import org.junit.Assert; import org.junit.Before; import org.junit.Test; -import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.ActiveProfiles; -import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.MvcResult; @@ -25,12 +21,6 @@ import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; -@RunWith(SpringRunner.class) -@SpringBootTest( - webEnvironment = SpringBootTest.WebEnvironment.MOCK, - classes = TestNumPortalApplication.class) -@AutoConfigureMockMvc -@ActiveProfiles("itest") public class MessageControllerIT extends IntegrationTest{ private static final String MESSAGE_PATH = "/message";