WIP
[demos/spring-boot] / src / test / java / de / juplo / demo / DemoApplicationTests.java
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()
+  {
+       }
 }