diff --git a/smoke-test/spring-boot-smoke-test-websocket-tomcat/build.gradle b/smoke-test/spring-boot-smoke-test-websocket-tomcat/build.gradle index 54a5d6aba17..449053f638f 100644 --- a/smoke-test/spring-boot-smoke-test-websocket-tomcat/build.gradle +++ b/smoke-test/spring-boot-smoke-test-websocket-tomcat/build.gradle @@ -25,3 +25,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-test")) } + +tasks.named("compileTestJava") { + options.nullability.checking = "tests" +} diff --git a/smoke-test/spring-boot-smoke-test-websocket-tomcat/src/test/java/smoketest/websocket/tomcat/SampleWebSocketsApplicationTests.java b/smoke-test/spring-boot-smoke-test-websocket-tomcat/src/test/java/smoketest/websocket/tomcat/SampleWebSocketsApplicationTests.java index b7bdbcab54c..e28af6bffb6 100644 --- a/smoke-test/spring-boot-smoke-test-websocket-tomcat/src/test/java/smoketest/websocket/tomcat/SampleWebSocketsApplicationTests.java +++ b/smoke-test/spring-boot-smoke-test-websocket-tomcat/src/test/java/smoketest/websocket/tomcat/SampleWebSocketsApplicationTests.java @@ -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); diff --git a/smoke-test/spring-boot-smoke-test-websocket-tomcat/src/test/java/smoketest/websocket/tomcat/echo/CustomContainerWebSocketsApplicationTests.java b/smoke-test/spring-boot-smoke-test-websocket-tomcat/src/test/java/smoketest/websocket/tomcat/echo/CustomContainerWebSocketsApplicationTests.java index 4ef36466a17..c2f64d3df79 100644 --- a/smoke-test/spring-boot-smoke-test-websocket-tomcat/src/test/java/smoketest/websocket/tomcat/echo/CustomContainerWebSocketsApplicationTests.java +++ b/smoke-test/spring-boot-smoke-test-websocket-tomcat/src/test/java/smoketest/websocket/tomcat/echo/CustomContainerWebSocketsApplicationTests.java @@ -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);