BAEL-3689: Add missing code examples (#10282)
This commit is contained in:
+5
@@ -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);
|
||||
|
||||
+1
-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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user