diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ReactiveTypeHandlerTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ReactiveTypeHandlerTests.java index aa5ace4614..8b2a4f7fa9 100644 --- a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ReactiveTypeHandlerTests.java +++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ReactiveTypeHandlerTests.java @@ -109,11 +109,11 @@ public class ReactiveTypeHandlerTests { public void deferredResultSubscriberWithOneValue() throws Exception { // Mono - MonoProcessor mono = MonoProcessor.create(); + MonoProcessor mono = MonoProcessor.fromSink(Sinks.one()); testDeferredResultSubscriber(mono, Mono.class, forClass(String.class), () -> mono.onNext("foo"), "foo"); // Mono empty - MonoProcessor monoEmpty = MonoProcessor.create(); + MonoProcessor monoEmpty = MonoProcessor.fromSink(Sinks.one()); testDeferredResultSubscriber(monoEmpty, Mono.class, forClass(String.class), monoEmpty::onComplete, null); // RxJava Single