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 13:16
thomas menzel is currently offline thomas menzelFriend
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: Thu Nov 27 23:40:53 GMT 2014

Powered by FUDForum. Page generated in 0.02622 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software