Browse Source

Add nullability annotations to tests in smoke-test/spring-boot-smoke-test-websocket-tomcat

See gh-47263
pull/47665/head
Moritz Halbritter 2 months ago
parent
commit
ecd3566d5f
  1. 4
      smoke-test/spring-boot-smoke-test-websocket-tomcat/build.gradle
  2. 1
      smoke-test/spring-boot-smoke-test-websocket-tomcat/src/test/java/smoketest/websocket/tomcat/SampleWebSocketsApplicationTests.java
  3. 1
      smoke-test/spring-boot-smoke-test-websocket-tomcat/src/test/java/smoketest/websocket/tomcat/echo/CustomContainerWebSocketsApplicationTests.java

4
smoke-test/spring-boot-smoke-test-websocket-tomcat/build.gradle

@ -25,3 +25,7 @@ dependencies { @@ -25,3 +25,7 @@ dependencies {
testImplementation(project(":starter:spring-boot-starter-test"))
}
tasks.named("compileTestJava") {
options.nullability.checking = "tests"
}

1
smoke-test/spring-boot-smoke-test-websocket-tomcat/src/test/java/smoketest/websocket/tomcat/SampleWebSocketsApplicationTests.java

@ -80,6 +80,7 @@ class SampleWebSocketsApplicationTests { @@ -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
smoke-test/spring-boot-smoke-test-websocket-tomcat/src/test/java/smoketest/websocket/tomcat/echo/CustomContainerWebSocketsApplicationTests.java

@ -95,6 +95,7 @@ class CustomContainerWebSocketsApplicationTests { @@ -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);

Loading…
Cancel
Save