WIP
authorKai Moritz <kai@juplo.de>
Wed, 22 Jan 2020 11:39:12 +0000 (12:39 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 7 Apr 2023 11:15:40 +0000 (13:15 +0200)
src/test/java/de/juplo/demo/DemoApplicationTests.java
src/test/java/de/juplo/demo/DemoControllerIT.java [new file with mode: 0644]

index e5729d5..791a60b 100644 (file)
@@ -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 (file)
index 0000000..8678a87
--- /dev/null
@@ -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()
+  {
+    
+  }
+}