mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-05-03 03:43:54 +01:00
Add nullability annotations to tests in module/spring-boot-rsocket-test
See gh-47263
This commit is contained in:
@@ -33,3 +33,7 @@ dependencies {
|
||||
|
||||
testRuntimeOnly("ch.qos.logback:logback-classic")
|
||||
}
|
||||
|
||||
tasks.named("compileTestJava") {
|
||||
options.nullability.checking = "tests"
|
||||
}
|
||||
|
||||
+3
-2
@@ -16,6 +16,7 @@
|
||||
|
||||
package org.springframework.boot.test.rsocket.server;
|
||||
|
||||
import org.jspecify.annotations.Nullable;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
|
||||
@@ -37,10 +38,10 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
class LocalRSocketServerPortTests {
|
||||
|
||||
@Value("${local.rsocket.server.port}")
|
||||
private String fromValue;
|
||||
private @Nullable String fromValue;
|
||||
|
||||
@LocalRSocketServerPort
|
||||
private String fromAnnotation;
|
||||
private @Nullable String fromAnnotation;
|
||||
|
||||
@Test
|
||||
void testLocalRSocketServerPortAnnotation() {
|
||||
|
||||
Reference in New Issue
Block a user