- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
jmock简介(Jmock introduction)
jmock简介(Jmock introduction) Catalog Total 1 Function and features 1 Background 1 References 2 18.2 JMock (2) 2 Quick start tutorial 2 Introduction to Expectations usage 5 18.2 JMock (3) 6 18.2 JMock (4) 8 Version information 8 Community perspective 9 General Mock testing is a common test method. Usually, when testing, the test code often needs to interact with some real objects, or the execution of the code to be executed depends on the capabilities of the real object. At this point, we can use a lightweight, controllable Mock object instead of a real object, simulating the behavior and function of real objects, so that we can test it. JMock is an implementation of this approach. JMock is a lightweight testing tool that uses Mock objects to test Java code. There is no exception, it is also a member of the xUnit family, because it developed from JUnit, is an enhanced library of JUnit. JMock usage is simple and easy to master. Using it, we can easily and quickly construct the required Mock objects, so that we can easily and quickly write unit test code, which is suitable for the smooth development of test driven development. Function and characteristics With jMock, we dont have to stop writing test code as weve done before and turn to specialized Mock objects. Moreover, jMock allows you to precisely define constraints between objects that interact with each other in a very flexible way to better simulate and characterize call relationships between objects. The constraint expression of the call relationships between such objects in jMock is very concise and compact, which It makes the writing of test code very concise, and also makes good use of Mock object to achieve test intention. In addition, jMock is also easy to extend, and we can easily add custom requirements. JMock can be well integrated with other existing test frameworks, such as JUnit, for common use. Background introduction On jMocks official website, an introduction to the project development team is pres
您可能关注的文档
- diy小车入门(Introduction to DIY cars).doc
- dmi使用技巧(DMI tips).doc
- dg窄带反射滤光片研制中胶膜厚度的理论设计c(Theoretical design of adhesive film thickness in the development of DG narrow band reflective filter C).doc
- dmso(DMSO).doc
- dna回收技术总结(DNA recovery technology summary).doc
- dna分子杂交(DNA molecular hybridization).doc
- dnf中赚钱方法及npc送礼(DNF ways to make money and NPC gifts).doc
- dnf远古一套流程(DNF ancient set of processes).doc
- dnp屏(DNP screen).doc
- dnf附魔收费表,1月25日更新(DNF enchant fee list updated in January 25th).doc
- joe wong(乔王).doc
- jsp的复习题(JSP exercises).doc
- jquery性能优化手册(The performance optimization of jQuery manual).doc
- js类型转换(JS type conversion).doc
- ky阅读(KY reading).doc
- lastsave(lastsave).doc
- linux wait与waitpid函数的深入分析(A thorough analysis of Linux wait and waitpid function).doc
- linux习题(Linux exercises).doc
- linux上如何虚拟的磁盘设备(How the virtual disk devices on Linux).doc
- linux链接文件总结(Linux link file summary).doc
文档评论(0)