package cn.com.bhgx.business.module.customerinfo.test;
import org.apache.xbean.spring.context.ClassPathXmlApplicationContext;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import cn.com.bhgx.business.module.customerinfo.service.ICustomerService;
public class TestAllFunction2 {
private ICustomerService customerService;
@Before
public void init() {
ApplicationContext cxt = new ClassPathXmlApplicationContext(new String[]{"classpath:spring/beanRefContext.xml",
"classpath:spring/web-application-common.xml",
"classpath:spring/web-application-dao.xml",
"classpath:spring/web-application-service.xml"});
customerService = (ICustomerService) cxt.getBean("customerService");
}
@Test
public void getAllCustomers() {
customerService.getCustomerById("1241470");
}
}