mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-30 22:39:06 +00:00
Add nullability annotations to tests in smoke-test/spring-boot-smoke-test-websocket-tomcat
See gh-47263
This commit is contained in:
@@ -25,3 +25,7 @@ dependencies {
|
||||
|
||||
testImplementation(project(":starter:spring-boot-starter-test"))
|
||||
}
|
||||
|
||||
tasks.named("compileTestJava") {
|
||||
options.nullability.checking = "tests"
|
||||
}
|
||||
|
||||
+1
@@ -80,6 +80,7 @@ class SampleWebSocketsApplicationTests {
|
||||
static class ClientConfiguration implements CommandLineRunner {
|
||||
|
||||
@Value("${websocket.uri}")
|
||||
@SuppressWarnings("NullAway.Init")
|
||||
private String webSocketUri;
|
||||
|
||||
private final CountDownLatch latch = new CountDownLatch(1);
|
||||
|
||||
+1
@@ -95,6 +95,7 @@ class CustomContainerWebSocketsApplicationTests {
|
||||
static class ClientConfiguration implements CommandLineRunner {
|
||||
|
||||
@Value("${websocket.uri}")
|
||||
@SuppressWarnings("NullAway.Init")
|
||||
private String webSocketUri;
|
||||
|
||||
private final CountDownLatch latch = new CountDownLatch(1);
|
||||
|
||||
Reference in New Issue
Block a user