bael-4197: fix bug
This commit is contained in:
parent
58b01b624a
commit
7f17253b07
|
@ -2,11 +2,15 @@ package com.baeldung.xmlapplicationcontext;
|
||||||
|
|
||||||
import com.baeldung.xmlapplicationcontext.service.EmployeeService;
|
import com.baeldung.xmlapplicationcontext.service.EmployeeService;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.junit.runner.RunWith;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
|
import org.springframework.test.context.junit4.SpringRunner;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
|
||||||
|
@RunWith(SpringRunner.class)
|
||||||
@SpringBootTest(classes = XmlBeanApplication.class)
|
@SpringBootTest(classes = XmlBeanApplication.class)
|
||||||
public class EmployeeServiceAppContextIntegrationTest {
|
public class EmployeeServiceAppContextIntegrationTest {
|
||||||
|
|
||||||
|
|
|
@ -2,14 +2,17 @@ package com.baeldung.xmlapplicationcontext;
|
||||||
|
|
||||||
import com.baeldung.xmlapplicationcontext.service.EmployeeService;
|
import com.baeldung.xmlapplicationcontext.service.EmployeeService;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.junit.runner.RunWith;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Qualifier;
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
import org.springframework.test.context.ContextConfiguration;
|
import org.springframework.test.context.ContextConfiguration;
|
||||||
|
import org.springframework.test.context.junit4.SpringRunner;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
@SpringBootTest
|
@RunWith(SpringRunner.class)
|
||||||
|
@SpringBootTest(classes = XmlBeanApplication.class)
|
||||||
@ContextConfiguration(locations = "/test-context.xml")
|
@ContextConfiguration(locations = "/test-context.xml")
|
||||||
public class EmployeeServiceTestContextIntegrationTest {
|
public class EmployeeServiceTestContextIntegrationTest {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue