From d5acf311ac55945b6f1006ebdbe560a6cfeaea29 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 22 Jan 2020 10:55:48 +0100 Subject: [PATCH] WIP --- src/test/java/de/juplo/demo/DemoControllerIT.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/test/java/de/juplo/demo/DemoControllerIT.java b/src/test/java/de/juplo/demo/DemoControllerIT.java index 66110ae..8678a87 100644 --- a/src/test/java/de/juplo/demo/DemoControllerIT.java +++ b/src/test/java/de/juplo/demo/DemoControllerIT.java @@ -3,10 +3,9 @@ package de.juplo.demo; import lombok.extern.slf4j.Slf4j; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest; -import org.springframework.test.context.junit.jupiter.SpringExtension; +import org.springframework.boot.test.context.SpringBootTest; +import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT; import org.springframework.test.web.reactive.server.WebTestClient; @@ -14,8 +13,7 @@ import org.springframework.test.web.reactive.server.WebTestClient; * Integration-Test for the {@link DemoController}. * @author Kai Moritz */ -@ExtendWith(SpringExtension.class) -@WebFluxTest +@SpringBootTest(webEnvironment = RANDOM_PORT, classes = DemoController.class) @Slf4j public class DemoControllerIT { -- 2.20.1