Add test case for banner to command-line-runner smoke test
This commit is contained in:
@@ -23,4 +23,11 @@ class CommandlinerunnerApplicationAotTests {
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
void bannerIsPrinted(AssertableOutput output) {
|
||||
Awaitility.await().atMost(Duration.ofSeconds(10)).untilAsserted(() -> {
|
||||
assertThat(output).hasSingleLineContaining("= Command line runner smoke test =");
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
3
command-line-runner/src/main/resources/banner.txt
Normal file
3
command-line-runner/src/main/resources/banner.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
==================================
|
||||
= Command line runner smoke test =
|
||||
==================================
|
||||
Reference in New Issue
Block a user