From: Kai Moritz Date: Thu, 21 Nov 2019 19:42:52 +0000 (+0100) Subject: WIP: WebClient -- ExchangeFilterFunction.ofResponseProcessor() ersetzt X-Git-Tag: wip-webclient~14 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=275e05949310906ca62356d76dccda522d93ab7e;p=facebook-errors WIP: WebClient -- ExchangeFilterFunction.ofResponseProcessor() ersetzt --- diff --git a/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java b/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java index 8d21cc5..6304665 100644 --- a/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java +++ b/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java @@ -132,7 +132,7 @@ public class GraphApiExchangeFilterFunctionIntegrationTest public static ExchangeFilterFunction errorHandlingFilter() { - return ExchangeFilterFunction.ofResponseProcessor(response -> + return (request, next) -> next.exchange(request).flatMap(response -> { if (response.statusCode() != null && (response.statusCode() .is5xxServerError() || response.statusCode().is4xxClientError()))