From f16862b51e98a30710fe20dc867110d48bb03be3 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Thu, 21 Nov 2019 21:07:09 +0100 Subject: [PATCH] =?utf8?q?WIP:=20WebClient=20--=20DIE=20L=C3=96SUNG!=20--?= =?utf8?q?=20Feinschliff...?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../facebook/errors/GraphApiExchangeFilterFunction.java | 9 --------- .../GraphApiExchangeFilterFunctionIntegrationTest.java | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) 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(); } -- 2.20.1