/
NikolayIvkin
/
tutorials1
Обзор
Документация
Войти
/
NikolayIvkin
/
tutorials1
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
spring-boot-modules/spring-boot-testing-2/src/test/java/com/baeldung/xmlapplicationcontext/EmployeeServiceAppContextIntegrationTest.java
26 строк
815 B
Christian German
BAEL-5717 - Fix spring-oauth2-resource-server Autoconfiguration failure (#12740)
25 сен 2022, 20:09
25 сен 2022, 20:09
efb70f2
Код
Авторство
О чём код?
package com.baeldung.xmlapplicationcontext; import static org.assertj.core.api.Assertions.assertThat; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import com.baeldung.xmlapplicationcontext.service.EmployeeService; @RunWith(SpringRunner.class) @SpringBootTest(classes = XmlBeanApplication.class) //@ContextConfiguration(locations = "file:src/main/webapp/WEB-INF/application-context.xml") public class EmployeeServiceAppContextIntegrationTest { @Autowired private EmployeeService service; @Test public void whenContextLoads_thenServiceISNotNull() { assertThat(service).isNotNull(); } }