spring框架上 单元测试

spring框架下 单元测试@ContextConfiguration(locations { /applicationContext.xml })public class X

spring框架下 单元测试
@ContextConfiguration(locations = { "/applicationContext.xml" })
public class XXXTest extends AbstractJUnit4SpringContextTests {

...
@Test
public void testYYY() {
XXX xxx = new XXXImpl();
xxx .YYY();

}