Add nullability annotations to tests in module/spring-boot-webclient

See gh-47263
This commit is contained in:
Moritz Halbritter
2025-10-15 16:58:21 +02:00
parent 655de9b1c3
commit a97975df25
2 changed files with 5 additions and 0 deletions
@@ -44,3 +44,7 @@ dependencies {
testRuntimeOnly("ch.qos.logback:logback-classic")
}
tasks.named("compileTestJava") {
options.nullability.checking = "tests"
}
@@ -126,6 +126,7 @@ class ReactiveHttpServiceClientAutoConfigurationTests {
then(builder).should().clientConnector(connectorCaptor.capture());
ClientHttpConnector client = connectorCaptor.getValue();
HttpClient httpClient = (HttpClient) ReflectionTestUtils.getField(client, "httpClient");
assertThat(httpClient).isNotNull();
assertThat(httpClient.connectTimeout()).contains(expectedReadTimeout);
}