import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
-import org.springframework.beans.factory.annotation.Autowired;
+import org.junit.jupiter.api.extension.ExtendWith;
+import org.openqa.selenium.remote.RemoteWebDriver;
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)
+@SpringBootTest(webEnvironment = RANDOM_PORT)
+@ExtendWith(WebDriverExtension.class)
@Slf4j
public class DemoControllerIT
{
- @Autowired
- WebTestClient client;
-
-
@Test
- void testSubmit()
+ void testSubmit(RemoteWebDriver driver)
{
}