spring是28版,junit好像是3.8的
package
com.hebca.std.web.action.statistic;
import org.springframework.test.AbstractDependencyInjectionSpringContextTests;
import com.hebca.std.business.statistic.StatInfuseManager;
public class StatInfuseActionTest extends
AbstractDependencyInjectionSpringContextTests ... {
private StatInfuseManager titleDao;
public void setTitleDao(StatInfuseManager titleDao) ...{
this.titleDao = titleDao;
}
protected String[] getConfigLocations() ...{
// TODO Auto-generated method stub
return new String[]...{"classpath:applicationContext-statistic_xj.xml"
,"classpath:applicationContext-resources.xml"
};
}
public void testLoadTitle() throws Exception ...{
assertNotNull("kk");
}
}
import org.springframework.test.AbstractDependencyInjectionSpringContextTests;
import com.hebca.std.business.statistic.StatInfuseManager;
public class StatInfuseActionTest extends
AbstractDependencyInjectionSpringContextTests ... {
private StatInfuseManager titleDao;
public void setTitleDao(StatInfuseManager titleDao) ...{
this.titleDao = titleDao;
}
protected String[] getConfigLocations() ...{
// TODO Auto-generated method stub
return new String[]...{"classpath:applicationContext-statistic_xj.xml"
,"classpath:applicationContext-resources.xml"
};
}
public void testLoadTitle() throws Exception ...{
assertNotNull("kk");
}
}