BAEL-3689: Add missing code examples (#10282)

This commit is contained in:
kwoyke
2020-11-27 11:22:00 +01:00
committed by GitHub
parent 10ba4efce6
commit 83535bf123
5 changed files with 15 additions and 2 deletions
@@ -37,6 +37,11 @@ public class SpringStartupIntegrationTest {
ctx.getBean(InitializingBeanExampleBean.class);
}
@Test
public void whenInitMethod_shouldLogEnv() throws Exception {
ctx.getBean(InitMethodExampleBean.class);
}
@Test
public void whenApplicationListener_shouldRunOnce() throws Exception {
Assertions.assertThat(StartupApplicationListenerExample.counter).isEqualTo(1);
@@ -15,7 +15,7 @@ public class SpringStartupXMLConfigIntegrationTest {
private ApplicationContext ctx;
@Test
public void whenPostConstruct_shouldLogEnv() throws Exception {
public void whenInitMethod_shouldLogEnv() throws Exception {
ctx.getBean(InitMethodExampleBean.class);
}