mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Docs for the RestTestClient AssertJ integration
Closes gh-35701
This commit is contained in:
+8
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user