
TEST
ma865696
这个作者很懒,什么都没留下…
展开
-
How to test actions and daoes in struts2 wired with spring
Remember that in Struts 2, an action is usually called before and after various other interceptors are invoked. Interceptor configuration is usually specified in the struts.xml file. At this point we ...2010-04-18 10:19:07 · 112 阅读 · 0 评论 -
JUnit和单元测试入门简介
1、几个相关的概念 白盒测试——把测试对象看作一个打开的盒子,程序内部的逻辑结构和其他信息对测试人员是公开的。 回归测试——软件或环境的修复或更正后的“再测试”,自动测试工具对这类测试尤其有用。 单元测试——是最小粒度的测试,以测试某个功能或代码块。一般由程序员来做,因为它需要知道内部程序设计和编码的细节。 JUnit ——是一个开发源代码的Java测试框架,用于编写和运行可重复的测试。他...2010-04-18 12:26:57 · 133 阅读 · 0 评论 -
在struts2 spring hibernate3 框架下建立action的测试
要在SSH的框架下建立ACTION的测试,除了前面提到的基本方法外,还要注意下面的: 1 如果ACTION中有调用某个类的方法,在该方法中要用到SessionFactory等,最好把这个类做成一个DAO,让它继承HibernateDaoSupport,让SPRING框架自动注入,当然要配置这个DAO,如 <bean id="creatExcelDao" class="org.ma...2010-04-19 08:24:01 · 99 阅读 · 0 评论