Add test case for banner to command-line-runner smoke test

This commit is contained in:
Moritz Halbritter
2022-10-26 16:03:18 +02:00
parent f4af3bddc1
commit bf5a0a468c
2 changed files with 10 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,3 @@
==================================
= Command line runner smoke test =
==================================