WIP
authorKai Moritz <kai@juplo.de>
Wed, 22 Jan 2020 09:57:38 +0000 (10:57 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 7 Apr 2023 11:15:40 +0000 (13:15 +0200)
pom.xml
src/test/java/de/juplo/demo/DemoApplicationTests.java
src/test/java/de/juplo/demo/DemoControllerIT.java [deleted file]

diff --git a/pom.xml b/pom.xml
index 5768b30..0ad8f78 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                <groupId>org.springframework.boot</groupId>
                                <artifactId>spring-boot-maven-plugin</artifactId>
                        </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-failsafe-plugin</artifactId>
-                       </plugin>
                </plugins>
        </build>
 
index 791a60b..e5729d5 100644 (file)
@@ -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 (file)
index 8678a87..0000000
+++ /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()
-  {
-    
-  }
-}