Browse Source

Adapt to method name change in Mono

pull/1507/merge
Rossen Stoyanchev 7 years ago
parent
commit
fc0841c60f
  1. 2
      spring-web/src/test/java/org/springframework/http/server/reactive/RandomHandlerIntegrationTests.java
  2. 2
      spring-webflux/src/test/java/org/springframework/web/reactive/socket/WebSocketIntegrationTests.java

2
spring-web/src/test/java/org/springframework/http/server/reactive/RandomHandlerIntegrationTests.java

@ -84,7 +84,7 @@ public class RandomHandlerIntegrationTests extends AbstractHttpHandlerIntegratio @@ -84,7 +84,7 @@ public class RandomHandlerIntegrationTests extends AbstractHttpHandlerIntegratio
Mono<Integer> requestSizeMono = request.getBody().
reduce(0, (integer, dataBuffer) -> integer +
dataBuffer.readableByteCount()).
doAfterTerminate((size, throwable) -> {
doOnSuccessOrError((size, throwable) -> {
assertNull(throwable);
assertEquals(REQUEST_SIZE, (long) size);
});

2
spring-webflux/src/test/java/org/springframework/web/reactive/socket/WebSocketIntegrationTests.java

@ -73,7 +73,7 @@ public class WebSocketIntegrationTests extends AbstractWebSocketIntegrationTests @@ -73,7 +73,7 @@ public class WebSocketIntegrationTests extends AbstractWebSocketIntegrationTests
.subscribeWith(output)
.doOnNext(s -> logger.debug("inbound " + s))
.then()
.doOnTerminate((aVoid, ex) ->
.doOnSuccessOrError((aVoid, ex) ->
logger.debug("Done with " + (ex != null ? ex.getMessage() : "success")));
})
.block(Duration.ofMillis(5000));

Loading…
Cancel
Save