Merge branch '5.3.x'
This commit is contained in:
@@ -256,7 +256,7 @@ public abstract class AbstractRequestExpectationManager implements RequestExpect
|
||||
/**
|
||||
* Invoke this for an expectation that has been matched.
|
||||
* <p>The count of the given expectation is incremented, then it is
|
||||
* either stored if remainingCount > 0 or removed otherwise.
|
||||
* either stored if remainingCount > 0 or removed otherwise.
|
||||
*/
|
||||
public void update(RequestExpectation expectation) {
|
||||
expectation.incrementAndValidate();
|
||||
|
||||
@@ -80,7 +80,7 @@ public class FluxExchangeResult<T> extends ExchangeResult {
|
||||
* .exchange()
|
||||
* .expectStatus().isOk()
|
||||
* .returnResult()
|
||||
* .consumeWith(result -> assertThat(...);
|
||||
* .consumeWith(result -> assertThat(...);
|
||||
* </pre>
|
||||
* @param consumer the consumer for {@code "this"} instance
|
||||
*/
|
||||
|
||||
@@ -448,15 +448,15 @@ public interface WebTestClient {
|
||||
* <pre>
|
||||
* client.get().uri("/accounts/1")
|
||||
* .exchange()
|
||||
* .expectBody(Person.class).consumeWith(exchangeResult -> ... ));
|
||||
* .expectBody(Person.class).consumeWith(exchangeResult -> ... ));
|
||||
*
|
||||
* client.get().uri("/accounts")
|
||||
* .exchange()
|
||||
* .expectBodyList(Person.class).consumeWith(exchangeResult -> ... ));
|
||||
* .expectBodyList(Person.class).consumeWith(exchangeResult -> ... ));
|
||||
*
|
||||
* client.get().uri("/accounts/1")
|
||||
* .exchange()
|
||||
* .expectBody().consumeWith(exchangeResult -> ... ));
|
||||
* .expectBody().consumeWith(exchangeResult -> ... ));
|
||||
* </pre>
|
||||
* <p>Note that the configured consumer does not apply to responses
|
||||
* decoded to {@code Flux<T>} which can be consumed outside the workflow
|
||||
@@ -802,8 +802,8 @@ public interface WebTestClient {
|
||||
* <pre class="code">
|
||||
* webTestClient.get().uri("/hello").exchange()
|
||||
* .expectAll(
|
||||
* responseSpec -> responseSpec.expectStatus().isOk(),
|
||||
* responseSpec -> responseSpec.expectBody(String.class).isEqualTo("Hello, World!")
|
||||
* responseSpec -> responseSpec.expectStatus().isOk(),
|
||||
* responseSpec -> responseSpec.expectBody(String.class).isEqualTo("Hello, World!")
|
||||
* );
|
||||
* </pre>
|
||||
* @param consumers the list of {@code ResponseSpec} consumers
|
||||
|
||||
Reference in New Issue
Block a user