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

See gh-47263
This commit is contained in:
Moritz Halbritter
2025-10-16 11:24:43 +02:00
parent def99b16e6
commit af33233b1b
2 changed files with 9 additions and 0 deletions
@@ -40,3 +40,11 @@ dependencies {
dockerTestImplementation("org.testcontainers:junit-jupiter")
dockerTestImplementation("org.testcontainers:testcontainers")
}
tasks.named("compileTestJava") {
options.nullability.checking = "tests"
}
tasks.named("compileDockerTestJava") {
options.nullability.checking = "tests"
}
@@ -63,6 +63,7 @@ class SampleDataCouchbaseApplicationReactiveSslTests {
SampleDocument document = new SampleDocument();
document.setText("Look, new @DataCouchbaseTest!");
document = this.repository.save(document).block(Duration.ofSeconds(30));
assertThat(document).isNotNull();
assertThat(document.getId()).isNotNull();
assertThat(this.couchbaseTemplate.getBucketName()).isEqualTo(BUCKET_NAME);
this.repository.deleteAll();