Skip to content

Configure WebTestClient for @AutoConfigureMockMvc tests #23067

Closed
@bclozel

Description

@bclozel

Spring Framework recently added WebTestClient support for testing Spring MVC applications using MockMvc (see spring-projects/spring-framework#19647).

Right now, Spring Boot offers two ways to test a web application: using TestRestTemplate on a running web server or with MockMvc (no actual server involved).

We should consider MockMvcTestClient and how we should update our testing infrastructure and documentation with this new option.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions