mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 22:19:03 +00:00
Avoid deprecation warning in RandomHandlerIntegrationTests
This commit is contained in:
+3
-4
@@ -88,10 +88,8 @@ class RandomHandlerIntegrationTests extends AbstractHttpHandlerIntegrationTests
|
||||
Mono<Integer> requestSizeMono = request.getBody().
|
||||
reduce(0, (integer, dataBuffer) -> integer +
|
||||
dataBuffer.readableByteCount()).
|
||||
doOnSuccessOrError((size, throwable) -> {
|
||||
assertThat(throwable).isNull();
|
||||
assertThat(size).isEqualTo(REQUEST_SIZE);
|
||||
});
|
||||
doOnNext(size -> assertThat(size).isEqualTo(REQUEST_SIZE)).
|
||||
doOnError(throwable -> assertThat(throwable).isNull());
|
||||
|
||||
response.getHeaders().setContentLength(RESPONSE_SIZE);
|
||||
|
||||
@@ -112,4 +110,5 @@ class RandomHandlerIntegrationTests extends AbstractHttpHandlerIntegrationTests
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user