From b831533e2cf1dfdbdfbdb145bc4fc8bdb1339397 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 14 Jan 2020 08:19:59 +0100 Subject: [PATCH] WIP:it --- .../java/de/juplo/demo/DemoApplicationIT.java | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/test/java/de/juplo/demo/DemoApplicationIT.java b/src/test/java/de/juplo/demo/DemoApplicationIT.java index 4f0d1f9..ef9153a 100644 --- a/src/test/java/de/juplo/demo/DemoApplicationIT.java +++ b/src/test/java/de/juplo/demo/DemoApplicationIT.java @@ -1,14 +1,13 @@ package de.juplo.demo; import java.net.URI; -import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.mockserver.matchers.Times.exactly; import static org.mockserver.model.HttpForward.forward; import static org.mockserver.model.HttpRequest.request; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureWebMvc; +import org.springframework.boot.test.context.SpringBootTest; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.MediaType; @@ -16,24 +15,14 @@ import org.springframework.test.web.servlet.MockMvc; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; -import org.springframework.test.web.servlet.setup.MockMvcBuilders; -import org.springframework.web.context.WebApplicationContext; import org.springframework.web.reactive.function.client.WebClient; -@WebFluxTest +@SpringBootTest @AutoConfigureWebMvc class DemoApplicationIT extends IntegrationTestBase { - MockMvc mockMvc; @Autowired - WebApplicationContext context; - - - @BeforeEach - void setUp(WebApplicationContext context) - { - mockMvc = MockMvcBuilders.webAppContextSetup(context).build(); - } + MockMvc mockMvc; @Test -- 2.20.1