spring,webwork单元测试
来源:互联网 发布:arttemplate 判断数组 编辑:程序博客网 时间:2024/06/06 14:58
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");
}
}
- spring,webwork单元测试
- 新浪旧事-webwork、webwork+spring和webwork+spring+hibernate
- 新浪旧事-webwork、webwork+spring和webwork+spring+hibernate
- Spring+webwork(一)
- webwork+spring+hibernate整合
- webwork+spring+hibernate整合
- webwork+spring+hibernate整合
- Spring+Hibernate+WebWork配置
- WebWork 和 spring 的整合
- Webwork 和 spring 的整合
- 成功整合spring和webwork
- WebWork+Spring+Hibernate的烦恼
- 项目小结(hibernate + spring + webwork)
- Webwork+hibernate+spring分页实现
- webwork+spring+hibernate的整合
- spring与webwork集成2
- webwork与spring的整合
- webwork+spring+ibatis MVC实践
- ASP.NET 2.0 中改进的缓存功能
- 获取局域网在线用户名和IP(VC)
- js小摘要
- 设计模式:工厂和原型(清晰明了的对比)
- 浅谈 fileUplaod!
- spring,webwork单元测试
- 利用纯C++实现COM
- Photoshop鲜为人知的的75个技巧
- 设计模式:5种创建模式举例
- HTML 特殊字符表
- 获取datalist中的一组lable的文本
- 抽象工厂模式(Abstract Factory Pattern)
- webwork在Action中取页面东西时,如果第一次非空而第二次为空如何取到空
- 模糊查询