Merge branch '2.2.x' into 2.3.x

Closes gh-23598
This commit is contained in:
Andy Wilkinson
2020-10-06 14:35:49 +01:00
4 changed files with 78 additions and 2 deletions

View File

@@ -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");
}
}