|
From: Dmitriy K. <dko...@ru...> - 2004-12-04 19:33:46
|
Dion, thankfully such infrastructure exists (since 1.1.1) in the "test" package which resides in spring-mock.jar Take a look: http://www.springframework.org/docs/api/org/springframework/test/package-summary.html Regards, Dmitriy. Dion Almaer wrote: >Hi guys - > >Rather than having FooTest.java do getBean("someBean") it would be nice to >just have setFooBean(...) on the test itself, and have the dependencies >injected. > >I am wondering if people have done this before, and if so, how they went >about it. > >Can you just create a base class which bootstraps everything and injects the >dependencies on the subclass itself? > >Cheers, > >Dion > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://productguide.itmanagersjournal.com/ >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > |