Junit: Test Spring (auto)wiring 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
20:01 UTC
Read the original article
Hit count: 446
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