写道
public class SaveATest extends AbstractJUnit{
private ReschduleService reschduleService;
@Test
public void testSaveA() throws ParseException{
A a =new A();
AService.saveA(a);
}
@Override
protected ApplicationContext getContext() {
String[] filepath = new String[] {
"classpath*:/ctx-*.xml"
};
return new ClassPathXmlApplicationContext(filepath);
}
@Override
protected void setUp() throws Exception {
super.setUp();
aService = (AService) context.getBean("AService");
}
}
private ReschduleService reschduleService;
@Test
public void testSaveA() throws ParseException{
A a =new A();
AService.saveA(a);
}
@Override
protected ApplicationContext getContext() {
String[] filepath = new String[] {
"classpath*:/ctx-*.xml"
};
return new ClassPathXmlApplicationContext(filepath);
}
@Override
protected void setUp() throws Exception {
super.setUp();
aService = (AService) context.getBean("AService");
}
}