Mock Objects
Torsten Bergmann
astares at gmx.de
Fri Jun 23 11:24:39 UTC 2006
Hi Chad,
have a look at the Teachable package (VisualWorks and Squeak)
which is explained and linked from:
http://astares.blogspot.com/2005/04/teaching-behavior.html
It's not a direct example for mock objects - merely a package
for dynamically creating and teaching an object how to react
to messages.
You can use it to easily construct mock objects without
creating explicit mock classes.
But take care: sometimes an explicit mock class is better
since you can use the tools on it (browser, lint, coverage, ...)
Bye
Torsten
--
"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
More information about the Squeak-dev
mailing list
|