Mock roles, not objects
Steve Freeman, Tim Mackinnon, Nat Pryce et al. · Companion to the ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA Companion) · 2004
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.
Cited by 88 works. doi:10.1145/1028664.1028765
Authors
References
- Refactoring: Improving the Design of Existing Code
- Aspect-oriented programming
- Aspect-oriented programming
- Assuring good style for object-oriented programs
- A laboratory for teaching object oriented thinking
- “Critique of the Gotha Program” (1875)
- A laboratory for teaching object oriented thinking
- Pair programming illuminated
- Building domain-specific embedded languages
- Test-driven development concepts, taxonomy, and future direction