Update to latest Reactor snapshot

This commit is contained in:
Rossen Stoyanchev 2016-06-03 17:55:14 -04:00
parent 03a997c9d4
commit b20ea75766
3 changed files with 4 additions and 4 deletions

View File

@ -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());

View File

@ -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();
}

View File

@ -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")