From: Kai Moritz Date: Wed, 22 Jan 2020 11:39:12 +0000 (+0100) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=5e66527ece6c1cca3de454439c115d4f035286d6;p=demos%2Fspring-boot WIP --- diff --git a/src/test/java/de/juplo/demo/DemoApplicationTests.java b/src/test/java/de/juplo/demo/DemoApplicationTests.java index e5729d5..791a60b 100644 --- a/src/test/java/de/juplo/demo/DemoApplicationTests.java +++ b/src/test/java/de/juplo/demo/DemoApplicationTests.java @@ -1,22 +1,13 @@ 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(webEnvironment = RANDOM_PORT) -@Slf4j -class DemoApplicationTests -{ - @Autowired - WebTestClient client; +@SpringBootTest +class DemoApplicationTests { - - @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 new file mode 100644 index 0000000..8678a87 --- /dev/null +++ b/src/test/java/de/juplo/demo/DemoControllerIT.java @@ -0,0 +1,29 @@ +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() + { + + } +}