Better document client-side tests against MockMvc

Issue: SPR-13815
This commit is contained in:
Rossen Stoyanchev
2016-01-14 15:15:07 -05:00
parent 7690f27c5e
commit 4818378c25
2 changed files with 30 additions and 6 deletions

View File

@@ -80,6 +80,12 @@ import org.springframework.web.client.support.RestGatewaySupport;
* classes), you can typically use the Code Completion features (i.e.
* ctrl-space) in your IDE to set up the mocks.
*
* <p>An alternative to the above is to use
* {@link MockMvcClientHttpRequestFactory} which allows executing requests
* against a {@link org.springframework.test.web.servlet.MockMvc MockMvc}
* instance. That allows you to process requests using your server-side code
* but without running a server.
*
* <p><strong>Credits:</strong> The client-side REST testing support was
* inspired by and initially based on similar code in the Spring WS project for
* client-side tests involving the {@code WebServiceTemplate}.