Merge branch '2.2.x' into 2.3.x
Closes gh-23598
This commit is contained in:
@@ -71,4 +71,17 @@ class RunningDocumentationTests {
|
||||
.build("optimizedLaunch").getOutput()).contains("false");
|
||||
}
|
||||
|
||||
@TestTemplate
|
||||
void bootRunSystemPropertyDefaultValue() throws IOException {
|
||||
assertThat(this.gradleBuild.script("src/main/gradle/running/boot-run-system-property")
|
||||
.build("configuredSystemProperties").getOutput()).contains("com.example.property = default");
|
||||
}
|
||||
|
||||
@TestTemplate
|
||||
void bootRunSystemPropetry() throws IOException {
|
||||
assertThat(this.gradleBuild.script("src/main/gradle/running/boot-run-system-property")
|
||||
.build("-Pexample=custom", "configuredSystemProperties").getOutput())
|
||||
.contains("com.example.property = custom");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user