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