package demo;
import javax.annotation.Resource;
import model.AOV;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import service.IAService;
import service.IBService;
@ContextConfiguration(locations = { "classpath:application.xml" })
@RunWith(SpringJUnit4ClassRunner.class)
public class TestA {
@Resource
IHessianServiceFactory factory;
@Test
public void testA() {
IAService a = factory.getAService();
IBService b = factory.getBService();
a.sayA();
AOV aov = a.getAOV();
// aov.setName("积极");
System.out.println(aov.getName());
b.sayB();
}
}