[jboss-user] [Microcontainer] - Injecting beans into Unit Tests under 1.02

jonesn do-not-reply at jboss.com
Fri Sep 21 05:28:48 EDT 2007


Hi All. 

I'm looking to introduce some injection into my current works Test Suite. They run their apps under JBoss so I thought Microcontainer would be the best fit for them.

I was having a look at MicrocontainerTest and MicrocontainerTestDelegate but I'm not too sure what their envisaged usage is.

What I'm looking to do is inject beans into integration tests, things like Datasources etc. I'm from a Spring background and in the past I would have extended AbstractDependencyInjectionSpringContextTests which would inject beans from the supplied contexts into the tests.

Does Microcontainer offer something similar? If not could someone point me in the direction of an example or the like to show me how Injection into Tests is achieved with Microcontainer?

Thanks for your help.
Nick.

 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087121#4087121

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087121



More information about the jboss-user mailing list