Update to latest Reactor snapshot
This commit is contained in:
parent
03a997c9d4
commit
b20ea75766
|
|
@ -306,7 +306,7 @@ public class ViewResolutionResultHandler extends ContentNegotiatingResultHandler
|
|||
.switchIfEmpty(Mono.error(
|
||||
new IllegalStateException(
|
||||
"Could not resolve view with name '" + viewName + "'.")))
|
||||
.asList()
|
||||
.collectList()
|
||||
.then(views -> {
|
||||
views.addAll(getDefaultViews());
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ public class InvocableHandlerMethodTests {
|
|||
InvocableHandlerMethod hm = createHandlerMethod("noArgs");
|
||||
|
||||
Mono<HandlerResult> mono = hm.invokeForRequest(this.exchange, this.model);
|
||||
HandlerResult value = mono.get();
|
||||
HandlerResult value = mono.block();
|
||||
|
||||
assertNotNull(value);
|
||||
assertEquals("success", value.getReturnValue().get());
|
||||
|
|
@ -204,7 +204,7 @@ public class InvocableHandlerMethodTests {
|
|||
}
|
||||
|
||||
private Throwable awaitErrorSignal(Publisher<?> publisher) throws Exception {
|
||||
Signal<?> signal = Flux.from(publisher).materialize().toList().get().get(0);
|
||||
Signal<?> signal = Flux.from(publisher).materialize().collectList().block().get(0);
|
||||
assertEquals("Unexpected signal: " + signal, SignalKind.onError, signal.getType());
|
||||
return signal.getThrowable();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -561,7 +561,7 @@ public class RequestMappingIntegrationTests extends AbstractHttpHandlerIntegrati
|
|||
|
||||
@RequestMapping("/stream-create")
|
||||
public Publisher<Void> streamCreate(@RequestBody Flux<Person> personStream) {
|
||||
return personStream.asList().doOnSuccess(persons::addAll).then();
|
||||
return personStream.collectList().doOnSuccess(persons::addAll).then();
|
||||
}
|
||||
|
||||
@RequestMapping("/person-capitalize")
|
||||
|
|
|
|||
Loading…
Reference in New Issue