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

See gh-47263
This commit is contained in:
Moritz Halbritter
2025-10-06 13:07:57 +02:00
parent c92617a015
commit 49c7546662
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -48,3 +48,7 @@ dependencies {
testRuntimeOnly("ch.qos.logback:logback-classic")
}
tasks.named("compileTestJava") {
options.nullability.checking = "tests"
}
@@ -137,7 +137,9 @@ class ConnectionFactoryUnwrapperTests {
}
private ConnectionFactory unwrap(ConnectionFactory connectionFactory) {
return ConnectionFactoryUnwrapper.unwrap(connectionFactory);
ConnectionFactory unwrapped = ConnectionFactoryUnwrapper.unwrap(connectionFactory);
assertThat(unwrapped).isNotNull();
return unwrapped;
}
}