An Object Mother is a very simple object used for testing purposes only.
It's used for creating chains of objects for testing that would normally
require many lines of code to set up.  For example, I'm building a video
store, so whenever I do a test, I usually need to create a couple of
movies, with all of the actor, director, title, etc. information for
each movie.  Instead of having the same 20 lines of code to do that in
every test, I use an ObjectMother, and call something like
objMother.createMovieList().  So really, it's just a convenience object,
and in no way should it leak into production code.

-----Original Message-----
From: Chris K Chew [mailto:[EMAIL PROTECTED]] 
Sent: Monday, September 30, 2002 12:04 PM
To: Turbine Users List
Subject: RE: Torque, junit and unit testing

>Rex Madden:
>It's funny that you mentioned the Object Mother pattern, because I just
>started using that as well.

What do you (Rex and/or Jeff) see as the difference between an Object
Mother
and a Turbine Service?

Chris


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to