加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Mock Objects in Unit Testing

发布时间:2020-12-13 20:44:02 所属栏目:百科 来源:网络整理
导读:在MSN上遇到了老哥(chen56)得知最近辞职在家开发了一个小工具,并放到了sf.net上 HiMock http://himock.sourceforge.net/ 以前对TDD了解一些,实践过几次,感觉也很好;不过Mock Objects的概念今天还是第一次听到-_-! 搜索MO,发现在XP2000上就已经提出了

在MSN上遇到了老哥(chen56)得知最近辞职在家开发了一个小工具,并放到了sf.net上

HiMock http://himock.sourceforge.net/

以前对TDD了解一些,实践过几次,感觉也很好;不过Mock Objects的概念今天还是第一次听到-_-!

搜索MO,发现在XP2000上就已经提出了这个概念:

Endo Testing: Unit Testing with Mock Objects

Unit testing is the testing of software units in isolation. However,most units do not work alone,but they collaborate with other units. To test a unit in isolation,we have to simulate the collaborators in the test.Mock Objects are test-oriented replacements for collaborators.

目前MO的项目还有 EasyMock 、JMock

挺感兴趣,最近打算研究一下;并答应老哥做这个开源项目的文档国际化的工作

一个很好的学习锻炼的机会

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读