.com
Hosted by:
Unit testing expertise at your fingertips!
Home | Discuss | Lists

[UTwHCM] - Unit Testing With Hand Crafted Mocks


By: Sven Gorts

This paper summarizes and names a number of idioms related to Hand-Built Test Doubles (see Configurable Test Double on page X), specfically Test Stubs (page X) and Mock Objects (page X). Sven Gorts writes:

Many of the unit tests I wrote over the last couple of years use mock objects in order to test the behavior of a component in isolation of the rest of the system. So far, despite the availability of various mocking frameworks, each of the mock classes I've used has been hand written. In this article I do some retrospection and try to wrap up the mocking idioms I've found most usefull.

Further Reading

See http://refactoring.be/articles/mocks/mocks.html.



Page generated at Wed Feb 09 16:39:49 +1100 2011

Copyright © 2003-2008 Gerard Meszaros all rights reserved

All Categories
Introductory Narratives
Web Site Instructions
Code Refactorings
Database Patterns
DfT Patterns
External Patterns
Fixture Setup Patterns
Fixture Teardown Patterns
Front Matter
Glossary
Misc
References
Result Verification Patterns
Sidebars
Terminology
Test Double Patterns
Test Organization
Test Refactorings
Test Smells
Test Strategy
Tools
Value Patterns
XUnit Basics
xUnit Members
All "References"
ADT
AP
APLfPW
ARTRP
CJ2EEP
DDD
ET
FaT
FitB
GOF
HoN
IEAT
IXP
JBrains
JNI
JuPG
LSD
MAS
MRNO
PEAA
PiJV1
PLoPD3
POSA2
PUT
RDb
Ref
RTC
RtP
SBPP
SCMP
SoC
TAM
TDD-APG
TDD-BE
TDD.Net
TI
TPS
UTF
UTwHCM
UTwJ
VCTP
WEwLC
Wp
WWW
XP123
XPC
XPE