spring-restdocs
spring-restdocs copied to clipboard
Add support for MockMvcWebTestClient
For my use cases this works already pretty well when I set up the MockMvcWebTestClient with the filter. But I use only a small subset of RestDocs.
This is what I did:
this.client = MockMvcWebTestClient.bindTo(mockMvc).baseUrl("http://localhost")
.filter(documentationConfiguration(restDocumentation))
.build();