Mock Objects

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Mock Objects

Torsten Bergmann
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