Docs for the RestTestClient AssertJ integration

Closes gh-35701
This commit is contained in:
rstoyanchev
2025-10-30 17:33:49 +00:00
parent d63f1a8bea
commit a23c3775a8
2 changed files with 92 additions and 12 deletions
@@ -514,6 +514,14 @@ public interface RestTestClient {
/**
* Perform the exchange.
* <p>The returned spec may be used in one of two alternative ways:
* <ul>
* <li>Use methods on the spec to extend the request workflow with a
* chain of response expectations
* <li>Wrap the spec with
* {@link org.springframework.test.web.servlet.client.assertj.RestTestClientResponse#from(ResponseSpec)}
* and verify the response with AssertJ statements
* </ul>
* @return a spec for expectations on the response
*/
ResponseSpec exchange();