From: Kai Moritz Date: Thu, 21 Nov 2019 15:31:18 +0000 (+0100) Subject: WIP: WebClient X-Git-Tag: wip-webclient~19 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=f2c25e56b087b1b8221f5a0afdb06ab77aedda26;p=facebook-errors WIP: WebClient --- diff --git a/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java b/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java index c468590..b90e057 100644 --- a/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java +++ b/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java @@ -103,7 +103,7 @@ public class GraphApiExchangeFilterFunctionIntegrationTest .filter((request, next) -> next.exchange(request).flatMap(response -> { List headerValues = response.headers().header("Foo"); - return headerValues.isEmpty() ? Mono.error(GraphApiException.create(response)) : + return headerValues.isEmpty() ? Mono.error(GraphApiException.create(response).block()) : Mono.just(response); })) .build();