WIP: WebClient -- DIE LĂ–SUNG! -- Feinschliff...
authorKai Moritz <kai@jupl.de>
Thu, 21 Nov 2019 20:07:09 +0000 (21:07 +0100)
committerKai Moritz <kai@jupl.de>
Thu, 21 Nov 2019 20:11:51 +0000 (21:11 +0100)
src/main/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunction.java
src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java

index 768ec1d..9bff65d 100644 (file)
@@ -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<ClientResponse> filter(ClientRequest request, ExchangeFunction next)
   {
index 0f67543..b9636ce 100644 (file)
@@ -40,7 +40,7 @@ public class GraphApiExchangeFilterFunctionIntegrationTest
             .builder()
             .clientConnector(new JettyClientHttpConnector())
             .baseUrl(server.url("/").toString())
-            .filter(GraphApiExchangeFilterFunction.INSTANCE)
+            .filter(new GraphApiExchangeFilterFunction())
             .build();
        }