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