mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Add nullability annotations to tests in smoke-test/spring-boot-smoke-test-couchbase
See gh-47263
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
+1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user