From: Kai Moritz Date: Wed, 22 Jan 2020 09:57:38 +0000 (+0100) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=7804bed0091dd51d648d7019bd1f6565344db797;p=demos%2Fspring-boot WIP --- diff --git a/pom.xml b/pom.xml index 5768b30..0ad8f78 100644 --- a/pom.xml +++ b/pom.xml @@ -62,10 +62,6 @@ org.springframework.boot spring-boot-maven-plugin - - org.apache.maven.plugins - maven-failsafe-plugin - diff --git a/src/test/java/de/juplo/demo/DemoApplicationTests.java b/src/test/java/de/juplo/demo/DemoApplicationTests.java index 791a60b..e5729d5 100644 --- a/src/test/java/de/juplo/demo/DemoApplicationTests.java +++ b/src/test/java/de/juplo/demo/DemoApplicationTests.java @@ -1,13 +1,22 @@ package de.juplo.demo; +import lombok.extern.slf4j.Slf4j; import org.junit.jupiter.api.Test; +import org.springframework.beans.factory.annotation.Autowired; 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; -@SpringBootTest -class DemoApplicationTests { +@SpringBootTest(webEnvironment = RANDOM_PORT) +@Slf4j +class DemoApplicationTests +{ + @Autowired + WebTestClient client; - @Test - void contextLoads() { - } + @Test + void contextLoads() + { + } } diff --git a/src/test/java/de/juplo/demo/DemoControllerIT.java b/src/test/java/de/juplo/demo/DemoControllerIT.java deleted file mode 100644 index 8678a87..0000000 --- a/src/test/java/de/juplo/demo/DemoControllerIT.java +++ /dev/null @@ -1,29 +0,0 @@ -package de.juplo.demo; - - -import lombok.extern.slf4j.Slf4j; -import org.junit.jupiter.api.Test; -import org.springframework.beans.factory.annotation.Autowired; -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; - - -/** - * Integration-Test for the {@link DemoController}. - * @author Kai Moritz - */ -@SpringBootTest(webEnvironment = RANDOM_PORT, classes = DemoController.class) -@Slf4j -public class DemoControllerIT -{ - @Autowired - WebTestClient client; - - - @Test - void testSubmit() - { - - } -}