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-web-groovy-templates
See gh-47263
This commit is contained in:
@@ -29,3 +29,7 @@ dependencies {
|
||||
testImplementation(project(":starter:spring-boot-starter-test"))
|
||||
testImplementation(project(":starter:spring-boot-starter-webmvc-test"))
|
||||
}
|
||||
|
||||
tasks.named("compileTestJava") {
|
||||
options.nullability.checking = "tests"
|
||||
}
|
||||
|
||||
+1
@@ -62,6 +62,7 @@ class SampleGroovyTemplateApplicationTests {
|
||||
map.set("text", "FOO text");
|
||||
map.set("summary", "FOO");
|
||||
URI location = this.restTemplate.postForLocation("/", map);
|
||||
assertThat(location).isNotNull();
|
||||
assertThat(location.toString()).contains("localhost:" + this.port);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user