|declarative services and junit tests :: how do i stall test execution till SCR has finished [message #509447]
||Fri, 22 January 2010 13:16
| thomas menzel
Registered: July 2009
the problem is that the unit tests are started before the SCR has finished starting up the components. |
is there some way (event getStatus() ) to see if the SCR has finished its work (at least all pending components got activated) and then start executing the tests?
for now we are using a timeout when getting the service in the setUp() of the test but that is not really safe (i.e. in this case the timeout happened to be a little too small since my dev. system was under heavy load at this point).
taking a higher timeout would work, but that makes the time always longer in case the service doesnt come up at all, which i would like to avoid.
Powered by FUDForum
. Page generated in 0.02315 seconds