use of org.springframework.web.reactive.function.client.ExchangeStrategies in project spring-boot by spring-projects.
the class WebMvcEndpointExposureIntegrationTests method createClient.
private WebTestClient createClient(AssertableWebApplicationContext context) {
int port = context.getSourceApplicationContext(ServletWebServerApplicationContext.class).getWebServer().getPort();
ExchangeStrategies exchangeStrategies = ExchangeStrategies.builder().codecs((configurer) -> configurer.defaultCodecs().maxInMemorySize(-1)).build();
return WebTestClient.bindToServer().baseUrl("http://localhost:" + port).exchangeStrategies(exchangeStrategies).responseTimeout(Duration.ofMinutes(5)).build();
}
Aggregations