<artifactId>reactor-test</artifactId>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-reactive-httpclient</artifactId>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
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;
*
* @author Kai Moritz
*/
+@RunWith(Parameterized.class)
public class GraphApiExchangeFilterFunctionIntegrationTest
{
private static final Logger LOG =
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()
webClient =
WebClient
.builder()
+ .clientConnector(this.connector)
.baseUrl(server.url("/").toString())
.filter(GraphApiExchangeFilterFunction.INSTANCE)
.build();