Skip to content

Commit

Permalink
Add test case to test if spring.main properties can be bound
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalbritter committed Aug 28, 2024
1 parent c8827b9 commit 77b5030
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,12 @@ void shouldImportConfig(AssertableOutput output) {

}

@Test
void shouldNotPrintBanner(AssertableOutput output) {
Awaitility.await()
.atMost(Duration.ofSeconds(10))
.untilAsserted(() -> assertThat(output).hasSingleLineContaining("Started ConfigPropsApplication in"));
assertThat(output).hasNoLinesContaining(":: Spring Boot ::");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ app.record:
spring:
config:
import: test.yaml
main:
banner-mode: off

0 comments on commit 77b5030

Please sign in to comment.