WIP: TMP - WebClient
authorKai Moritz <kai@jupl.de>
Thu, 21 Nov 2019 12:59:34 +0000 (13:59 +0100)
committerKai Moritz <kai@jupl.de>
Thu, 21 Nov 2019 12:59:34 +0000 (13:59 +0100)
src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java

index a10066b..743f6be 100644 (file)
@@ -100,7 +100,7 @@ public class GraphApiExchangeFilterFunctionIntegrationTest
             .builder()
             .clientConnector(new JettyClientHttpConnector())
             .baseUrl(server.url("/").toString())
-            .filter(ExchangeFilterFunction.ofResponseProcessor(response ->
+            .filter((request, next) -> next.exchange(request).flatMap(response ->
             {
                                                        List<String> headerValues = response.headers().header("Foo");
                                                        return headerValues.isEmpty() ? Mono.error(