mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Add nullability annotations to tests in module/spring-boot-webclient
See gh-47263
This commit is contained in:
@@ -44,3 +44,7 @@ dependencies {
|
||||
|
||||
testRuntimeOnly("ch.qos.logback:logback-classic")
|
||||
}
|
||||
|
||||
tasks.named("compileTestJava") {
|
||||
options.nullability.checking = "tests"
|
||||
}
|
||||
|
||||
+1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user