Update tests to look for snippets in correct location

See gh-23598
This commit is contained in:
Andy Wilkinson 2020-10-06 15:57:25 +01:00
parent 7eb92cc71a
commit 543763462c

View File

@ -73,13 +73,13 @@ class RunningDocumentationTests {
@TestTemplate
void bootRunSystemPropertyDefaultValue() throws IOException {
assertThat(this.gradleBuild.script("src/main/gradle/running/boot-run-system-property")
assertThat(this.gradleBuild.script("src/docs/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")
assertThat(this.gradleBuild.script("src/docs/gradle/running/boot-run-system-property")
.build("-Pexample=custom", "configuredSystemProperties").getOutput())
.contains("com.example.property = custom");
}