package de.juplo.demo;
import java.net.URI;
-import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.mockserver.matchers.Times.exactly;
import static org.mockserver.model.HttpForward.forward;
import static org.mockserver.model.HttpRequest.request;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureWebMvc;
+import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
-import org.springframework.test.web.servlet.setup.MockMvcBuilders;
-import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.reactive.function.client.WebClient;
-@WebFluxTest
+@SpringBootTest
@AutoConfigureWebMvc
class DemoApplicationIT extends IntegrationTestBase
{
- MockMvc mockMvc;
@Autowired
- WebApplicationContext context;
-
-
- @BeforeEach
- void setUp(WebApplicationContext context)
- {
- mockMvc = MockMvcBuilders.webAppContextSetup(context).build();
- }
+ MockMvc mockMvc;
@Test