BAEL-11102 Fix the integrations tests in spring-5-reactive (#7869)
This commit is contained in:
parent
0677a06271
commit
7f56b97a7d
|
@ -12,11 +12,13 @@ import org.springframework.boot.test.context.SpringBootTest;
|
||||||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
|
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
import org.springframework.security.test.context.support.WithMockUser;
|
import org.springframework.security.test.context.support.WithMockUser;
|
||||||
|
import org.springframework.test.annotation.DirtiesContext;
|
||||||
import org.springframework.test.context.junit4.SpringRunner;
|
import org.springframework.test.context.junit4.SpringRunner;
|
||||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||||
|
|
||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
@SpringBootTest(webEnvironment = WebEnvironment.DEFINED_PORT)
|
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
||||||
|
@DirtiesContext
|
||||||
@WithMockUser
|
@WithMockUser
|
||||||
@AutoConfigureWebTestClient(timeout = "10000")
|
@AutoConfigureWebTestClient(timeout = "10000")
|
||||||
public class ErrorHandlingIntegrationTest {
|
public class ErrorHandlingIntegrationTest {
|
||||||
|
|
Loading…
Reference in New Issue