From 58b44ced0e064cc9c0ec122a3d36e65275adbdac Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 14 Jan 2020 08:54:52 +0100 Subject: [PATCH] WIP:itflux --- src/test/java/de/juplo/demo/DemoApplicationIT.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test/java/de/juplo/demo/DemoApplicationIT.java b/src/test/java/de/juplo/demo/DemoApplicationIT.java index db6448a..54bf6aa 100644 --- a/src/test/java/de/juplo/demo/DemoApplicationIT.java +++ b/src/test/java/de/juplo/demo/DemoApplicationIT.java @@ -6,22 +6,25 @@ 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.context.SpringBootTest; +import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.MediaType; import org.springframework.test.web.reactive.server.WebTestClient; -import org.springframework.web.context.WebApplicationContext; import org.springframework.web.reactive.function.client.WebClient; @SpringBootTest class DemoApplicationIT extends IntegrationTestBase { WebTestClient webClient; + @Autowired + ApplicationContext context; @BeforeEach - void setUp(WebApplicationContext context) + void setUp() { webClient = WebTestClient.bindToApplicationContext(context).build(); } -- 2.20.1