File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
spring-boot-starter/spring-boot-starter-webflux/src/test/java/com/getyourguide/openapi/validation/integration Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 88import org .junit .jupiter .api .extension .ExtendWith ;
99import org .springframework .beans .factory .annotation .Autowired ;
1010import org .springframework .boot .test .context .SpringBootTest ;
11- import org .springframework .boot .webmvc . test . autoconfigure .AutoConfigureMockMvc ;
11+ import org .springframework .boot .webtestclient . autoconfigure .AutoConfigureWebTestClient ;
1212import org .springframework .http .MediaType ;
1313import org .springframework .test .context .junit .jupiter .SpringExtension ;
1414import org .springframework .test .web .reactive .server .WebTestClient ;
1515
1616@ SpringBootTest
17- @ AutoConfigureMockMvc
17+ @ AutoConfigureWebTestClient
1818@ ExtendWith (SpringExtension .class )
1919public class ExceptionsNoExceptionHandlerTest {
2020
Original file line number Diff line number Diff line change 1212import org .junit .jupiter .api .extension .ExtendWith ;
1313import org .springframework .beans .factory .annotation .Autowired ;
1414import org .springframework .boot .test .context .SpringBootTest ;
15- import org .springframework .boot .webmvc . test . autoconfigure .AutoConfigureMockMvc ;
15+ import org .springframework .boot .webtestclient . autoconfigure .AutoConfigureWebTestClient ;
1616import org .springframework .http .MediaType ;
1717import org .springframework .http .ResponseEntity ;
1818import org .springframework .test .context .junit .jupiter .SpringExtension ;
2626 SpringBootTestConfiguration .class ,
2727 ExceptionsWithExceptionHandlerTest .ExceptionHandlerConfiguration .class ,
2828})
29- @ AutoConfigureMockMvc
29+ @ AutoConfigureWebTestClient
3030@ ExtendWith (SpringExtension .class )
3131public class ExceptionsWithExceptionHandlerTest {
3232
Original file line number Diff line number Diff line change 1313import org .junit .jupiter .api .extension .ExtendWith ;
1414import org .springframework .beans .factory .annotation .Autowired ;
1515import org .springframework .boot .test .context .SpringBootTest ;
16- import org .springframework .boot .webmvc . test . autoconfigure .AutoConfigureMockMvc ;
16+ import org .springframework .boot .webtestclient . autoconfigure .AutoConfigureWebTestClient ;
1717import org .springframework .http .MediaType ;
1818import org .springframework .test .context .bean .override .mockito .MockitoSpyBean ;
1919import org .springframework .test .context .junit .jupiter .SpringExtension ;
2323 "openapi.validation.should-fail-on-request-violation=true" ,
2424 "openapi.validation.should-fail-on-response-violation=true" ,
2525})
26- @ AutoConfigureMockMvc
26+ @ AutoConfigureWebTestClient
2727@ ExtendWith (SpringExtension .class )
2828public class FailOnViolationIntegrationTest {
2929
Original file line number Diff line number Diff line change 1414import org .junit .jupiter .api .extension .ExtendWith ;
1515import org .springframework .beans .factory .annotation .Autowired ;
1616import org .springframework .boot .test .context .SpringBootTest ;
17- import org .springframework .boot .webmvc . test . autoconfigure .AutoConfigureMockMvc ;
17+ import org .springframework .boot .webtestclient . autoconfigure .AutoConfigureWebTestClient ;
1818import org .springframework .http .MediaType ;
1919import org .springframework .test .context .junit .jupiter .SpringExtension ;
2020import org .springframework .test .web .reactive .server .WebTestClient ;
2121
2222@ SpringBootTest
23- @ AutoConfigureMockMvc
23+ @ AutoConfigureWebTestClient
2424@ ExtendWith (SpringExtension .class )
2525public class OpenApiValidationIntegrationTest {
2626 @ Autowired
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ dependencies {
2121
2222 testFixturesApi platform(SpringBootPlugin . BOM_COORDINATES )
2323 testFixturesApi ' org.springframework.boot:spring-boot-starter-test'
24- testFixturesApi ' org.springframework.boot:spring-boot-webmvc-test '
24+ testFixturesApi ' org.springframework.boot:spring-boot-webtestclient '
2525 // For openapi generated code
2626 testFixturesApi ' org.springframework.boot:spring-boot-starter-validation'
2727 testFixturesApi(libs. openapi. tools. jacksonDatabindNullable)
You can’t perform that action at this time.
0 commit comments