spring-boot/spring-boot-project/spring-boot-docs/src
Brian Clozel 8b3bea173c Configure WebTestClient for @AutoConfigureMockMvc tests
As of Spring Framework 5.3, `WebTestClient` can now be configured on top
of `MockMvc` for testing Spring MVC applications in a mock environment.

Prior to this commit, `WebTestClient` would be already configured for
WebFlux mock setups with `@AutoConfigureWebTestClient` or live servers
(for both MVC and WebFlux apps).

This commit enhances the `@AutoConfigureWebMvc` support so that a
`WebTestClient` instance is auto-configured if the spring-webflux
dependency is present on the classpath.

Closes gh-23067
2021-08-03 09:43:44 +02:00
..
docs/asciidoc Configure WebTestClient for @AutoConfigureMockMvc tests 2021-08-03 09:43:44 +02:00
main Configure WebTestClient for @AutoConfigureMockMvc tests 2021-08-03 09:43:44 +02:00
test Remove unnecessary throws declaration in tests 2021-05-17 09:31:51 +02:00