一个juni例子

写道
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");
}
}

 

你可能感兴趣的:(例子)