Junit: Test Spring (auto)wireing with reflection?

Posted by Michael Bavin on Stack Overflow See other posts from Stack Overflow or by Michael Bavin
Published on 2010-03-22T15:20:43Z Indexed on 2010/03/22 15:31 UTC
Read the original article Hit count: 212

Hi,

Is it possible to JUnit test if wiring by Spring is succesfully?

I would like to do this by reflection. Like: get all beans with id *Controller and test if the fields *services are not null?

Thank you!

© Stack Overflow or respective owner

Related posts about dependency-injection

Related posts about junit