WIP
[demos/spring-boot] / src / test / java / de / juplo / demo / DemoControllerIT.java
index 66110ae..d8a4580 100644 (file)
@@ -4,27 +4,22 @@ package de.juplo.demo;
 import lombok.extern.slf4j.Slf4j;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.extension.ExtendWith;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest;
-import org.springframework.test.context.junit.jupiter.SpringExtension;
-import org.springframework.test.web.reactive.server.WebTestClient;
+import org.openqa.selenium.remote.RemoteWebDriver;
+import org.springframework.boot.test.context.SpringBootTest;
+import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;
 
 
 /**
  * Integration-Test for the {@link DemoController}.
  * @author Kai Moritz
  */
-@ExtendWith(SpringExtension.class)
-@WebFluxTest
+@SpringBootTest(webEnvironment = RANDOM_PORT)
+@ExtendWith(WebDriverExtension.class)
 @Slf4j
 public class DemoControllerIT
 {
-  @Autowired
-  WebTestClient client;
-
-
   @Test
-  void testSubmit()
+  void testSubmit(RemoteWebDriver driver)
   {
     
   }