From 25be0f8892d4e5930ac86e4d279e0d2125404455 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Thu, 21 Nov 2019 09:36:45 +0100 Subject: [PATCH] WIP: WebClient --- ...ExchangeFilterFunctionIntegrationTest.java | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java b/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java index 87c3fe6..ea41d27 100644 --- a/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java +++ b/src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java @@ -9,13 +9,9 @@ import org.junit.After; import static org.junit.Assert.assertEquals; import org.junit.Before; import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.Parameterized; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.http.client.reactive.ClientHttpConnector; import org.springframework.http.client.reactive.JettyClientHttpConnector; -import org.springframework.http.client.reactive.ReactorClientHttpConnector; import org.springframework.web.reactive.function.client.WebClient; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; @@ -25,7 +21,6 @@ import reactor.test.StepVerifier; * * @author Kai Moritz */ -@RunWith(Parameterized.class) public class GraphApiExchangeFilterFunctionIntegrationTest { private static final Logger LOG = @@ -34,19 +29,6 @@ public class GraphApiExchangeFilterFunctionIntegrationTest private MockWebServer server; private WebClient webClient; - @Parameterized.Parameter(0) - public ClientHttpConnector connector; - - @Parameterized.Parameters(name = "webClient [{0}]") - public static Object[][] arguments() - { - return new Object[][] - { - { new JettyClientHttpConnector() }, - { new ReactorClientHttpConnector() } - }; - } - @Before public void setup() @@ -55,7 +37,7 @@ public class GraphApiExchangeFilterFunctionIntegrationTest webClient = WebClient .builder() - .clientConnector(this.connector) + .clientConnector(new JettyClientHttpConnector()) .baseUrl(server.url("/").toString()) .filter(GraphApiExchangeFilterFunction.INSTANCE) .build(); -- 2.20.1