--- Ryan Sonnek <[EMAIL PROTECTED]> wrote:

> spring apps should be inherintly more UNIT testable
> meaning that each
> service should be constructed with mock objects or
> other lightweight
> implementations and not rely at all on spring. 
> relying on spring to
> construct and weave together your dependencies is
> classified as an
> integration test, which can be slower.

I would say that relying on container is generally "a
bad thing", and kind of violates IoC pattern... 

Well, Sometimes I use picocontainer inside test cases,
but only when I'm really lazy to type all the
initialisation manually. But then I cache  parsed
scripts, or use recording proxies...

And for integration tests - it is sometimes better to
rig up special project for those tests only, so system
development ist not slowed down by it...

regards,

=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
... Sucht gerade nach neuen Projekt oder Festanstelung....
Plugins for xdoclet-2 are released. check it out at:
http://www.sourceforge.net/projects/xdoclet-plugins/
----[ http://www.pribluda.de ]------------------------


                
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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

Reply via email to