From: Kai Moritz Date: Thu, 21 Nov 2019 20:07:09 +0000 (+0100) Subject: WIP: WebClient -- DIE LÖSUNG! -- Feinschliff... X-Git-Tag: wip-webclient~9 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=f16862b51e98a30710fe20dc867110d48bb03be3;p=facebook-errors WIP: WebClient -- DIE LÖSUNG! -- Feinschliff... --- diff --git a/src/main/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunction.java b/src/main/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunction.java index 768ec1d..9bff65d 100644 --- a/src/main/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunction.java +++ b/src/main/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunction.java @@ -1,8 +1,6 @@ package de.juplo.facebook.errors; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; import org.springframework.web.reactive.function.client.ClientRequest; import org.springframework.web.reactive.function.client.ClientResponse; @@ -17,13 +15,6 @@ import reactor.core.publisher.Mono; */ public class GraphApiExchangeFilterFunction implements ExchangeFilterFunction { - private static final Logger LOG = - LoggerFactory.getLogger(GraphApiExchangeFilterFunction.class); - - public static GraphApiExchangeFilterFunction INSTANCE = - new GraphApiExchangeFilterFunction(); - - @Override public Mono filter(ClientRequest request, ExchangeFunction next) { diff --git a/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java b/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java index 0f67543..b9636ce 100644 --- a/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java +++ b/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java @@ -40,7 +40,7 @@ public class GraphApiExchangeFilterFunctionIntegrationTest .builder() .clientConnector(new JettyClientHttpConnector()) .baseUrl(server.url("/").toString()) - .filter(GraphApiExchangeFilterFunction.INSTANCE) + .filter(new GraphApiExchangeFilterFunction()) .build(); }