03 2010 档案

摘要:翻译自《Programming Groovy - Dynamic Productivity for the jdk Developer》的P243。原文如下:Stubs vs. MocksIn the article “Mocks Aren’t Stubs,” (http://martinfowler.com/articles/mocksArentStubs.html), Martin Fowler discusses the difference between stubs and mocks. A stub stands in for a real object. It simply re 阅读全文
posted @ 2010-03-09 10:35 李鼎 阅读(234) 评论(0) 推荐(0)
摘要:没有UT的代码会让你有如芒在背的感觉。DB的UT(或是集成测试)比较麻烦,尤其是测试数据的准备。DbUnit就是解决这个问题。一、资料1. 网站DbUnit的官方网站上的介绍的DbUnit的内容不多。http://www.dbunit.orgDbUnit Wiki上的介绍的http://dbunit.wikidot.com/2. 文章Effective Unit Testing with DbUnithttp://onjava.com/pub/a/onjava/2004/01/21/dbunit.htmlDBUnit Made Easyhttp://www.oreillynet.com/onj 阅读全文
posted @ 2010-03-08 12:48 李鼎 阅读(303) 评论(0) 推荐(0)