Skip to content

Commit cbacb61

Browse files
committed
Merge branch '2.2.x'
Closes gh-19568
2 parents c9ad356 + e040556 commit cbacb61

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/integrationtest/WebMvcEndpointExposureIntegrationTests.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
import org.springframework.test.web.reactive.server.EntityExchangeResult;
5555
import org.springframework.test.web.reactive.server.WebTestClient;
5656
import org.springframework.web.bind.annotation.GetMapping;
57+
import org.springframework.web.reactive.function.client.ExchangeStrategies;
5758

5859
import static org.assertj.core.api.Assertions.assertThat;
5960

@@ -164,7 +165,10 @@ void singleWebEndpointCanBeExcluded() {
164165
private WebTestClient createClient(AssertableWebApplicationContext context) {
165166
int port = context.getSourceApplicationContext(ServletWebServerApplicationContext.class).getWebServer()
166167
.getPort();
167-
return WebTestClient.bindToServer().baseUrl("http://localhost:" + port).build();
168+
ExchangeStrategies exchangeStrategies = ExchangeStrategies.builder()
169+
.codecs((configurer) -> configurer.defaultCodecs().maxInMemorySize(512 * 1024)).build();
170+
return WebTestClient.bindToServer().baseUrl("http://localhost:" + port).exchangeStrategies(exchangeStrategies)
171+
.build();
168172
}
169173

170174
private boolean isExposed(WebTestClient client, HttpMethod method, String path) throws Exception {

0 commit comments

Comments
 (0)