Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » declarative services and junit tests :: how do i stall test execution till SCR has finished
declarative services and junit tests :: how do i stall test execution till SCR has finished [message #509447] Fri, 22 January 2010 08:16
thomas menzel is currently offline thomas menzel
Messages: 81
Registered: July 2009
Member
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.

so long


thomas menzel aka tom
Previous Topic:declarative services:: allows interface names with leading whitespace
Next Topic:OSGi services:: version resolving issues
Goto Forum:
  


Current Time: Fri Aug 01 07:52:38 EDT 2014

Powered by FUDForum. Page generated in 0.02086 seconds