junit&jmock
cyckjp
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
pojo:junit测试一
一:创建类 [code="java"] public class Student { private String name; Student(String name) { this.name = name; } String getName() { return name; } } [/code] 二:exte...2008-08-10 23:28:39 · 368 阅读 · 0 评论 -
关于测试suite
TestSuite 可以方便自动测试,而不必要在我们不用每个测试案例都要手动去测试 [code="java"] public class AllTests { public static junit.framework.TestSuite suite() { junit.framework.TestSuite suite = new junit.fr...2008-08-12 00:51:23 · 184 阅读 · 0 评论 -
Struts2与MockHttpServletRequest
一:post protected ApplicationContext ctx=new ClassApplicationContext("Application-context.xml"); MyAction myAction=ctx.getBean("myAction"); MockHttpServletRequet request=new MockServletRequest(); Strin...2008-04-05 01:17:22 · 412 阅读 · 0 评论
分享