Docs for the WebTestClient AssertJ integration

Closes gh-35737
This commit is contained in:
rstoyanchev
2025-11-05 10:00:33 +00:00
parent 7445f542f4
commit 02e928e4e3
2 changed files with 108 additions and 9 deletions
@@ -914,6 +914,17 @@ public interface WebTestClient {
*/
BodyContentSpec expectBody();
/**
* Return an {@link ExchangeResult} with the raw content. Effectively, a shortcut for:
* <pre class="code">
* .returnResult(byte[].class)
* </pre>
* @since 7.0
*/
default ExchangeResult returnResult() {
return returnResult(byte[].class);
}
/**
* Exit the chained flow in order to consume the response body externally,
* for example, via {@link reactor.test.StepVerifier}.