
test
iteye_11997
这个作者很懒,什么都没留下…
展开
-
JMock
import java.util.ArrayList; import java.util.Iterator; import java.util.List; public class Publisher { List<Subscriber> listener = new ArrayList<Subscriber>(); public vo...2009-11-30 09:29:00 · 101 阅读 · 0 评论 -
testng emma 测试 覆盖率
build.xml testng测试 并生成覆盖率报告 <project name="coverage" default="emma.reports"> <path id="emma.lib"> <pathelement location="WebRoot/WEB-INF/lib/emma.jar" />2010-03-01 11:58:29 · 180 阅读 · 0 评论 -
testng 读书笔记 servlet相关
只有知道测试方法被调用的顺序时,共享可修改的状态才有意义 只关注测试驱动开发将是程序员忽视大范围或中范围设计的实践 理想情况下,当您编写测试时,需要确保不论底层代码如何改动,这些测试仍然有效。 //在稍高的层面写测试? 如何创建测试不重要,重要的是确实要创建测试。 测试私有方法的方式就是利用反射 在method对象上调用setAccessible() 通知JVM跳过安全性检查 ...2010-03-16 14:05:17 · 163 阅读 · 0 评论 -
HtmlUnit vs HttpUnit [转] web test
最有价值的是最后一段,介绍了许多测试工具 There’s a lot of misinformation out there regarding web application test tools, so I’ve decided to post a series of short articles comparing some of the open source opti...2010-03-16 14:20:18 · 298 阅读 · 0 评论 -
testng 笔记
1.overview TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use, such as: JDK 5 An...2010-04-20 17:48:45 · 108 阅读 · 0 评论