Mock roles, objects

Mock roles, objects
复制标题

模拟角色、对象

DOI:
--
复制
发表时间:
2004
期刊:
Conference on Object-Oriented Programming Systems, Languages, and Applications
影响因子:
--
通讯作者:
Joe Walnes
Joe Walnes
中科院分区:
--
文献类型:
--
作者:
Steve Freeman;Tim Mackinnon;N. Pryce;Joe Walnes

文献摘要

被引文献

相似文献

模拟对象是测试驱动开发的扩展,它通过引导在代码库中发现一致的类型系统来支持良好的面向对象设计。事实证明,作为一种将测试与第三方库隔离的技术,它并不像人们普遍认为的那样有趣。本文通过一个扩展的例子描述了模拟对象的使用过程,并报告了从应用该过程的经验中获得的最佳实践和最差实践。它还介绍了jMock,这是一个体现我们集体经验的Java框架。
Mock Objects is an extension to Test-Driven Development that supports good Object-Oriented design by guiding the discovery of a coherent system of types within a code base. It turns out to be less interesting as a technique for isolating tests from third-party libraries than is widely thought. This paper describes the process of using Mock Objects with an extended example and reports best and worst practices gained from experience of applying the process. It also introduces jMock, a Java framework that embodies our collective experience.