/
NikolayIvkin
/
tutorials1
Обзор
Документация
Войти
/
NikolayIvkin
/
tutorials1
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
spring-boot-modules/spring-boot-data/src/test/java/com/baeldung/startup/SpringStartupXMLConfigIntegrationTest.java
26 строк
812 B
kwoyke
BAEL-3689: Add missing code examples (#10282)
27 ноя 2020, 13:22
27 ноя 2020, 13:22
83535bf
Код
Авторство
О чём код?
package com.baeldung.startup; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration("classpath:startupConfig.xml") public class SpringStartupXMLConfigIntegrationTest { @Autowired private ApplicationContext ctx; @Test public void whenInitMethod_shouldLogEnv() throws Exception { ctx.getBean(InitMethodExampleBean.class); } @Test public void whenAllStrategies_shouldLogOrder() throws Exception { ctx.getBean(AllStrategiesExampleBean.class); } }