Hi Dmytro,
I've already tried with a delay but no luck when using the assertServiceEvent.
But I could do this:
stopBundleAsync(bc, "org.lunifera.runtime.component.i18n", 2,
TimeUnit.SECONDS);
assertBundleEvent(BundleEvent.STOPPING | BundleEvent.STOPPED
| BundleEvent.RESOLVED, "org.lunifera.runtime.component.i18n",
3, TimeUnit.SECONDS);
I don't think I understand the delay right. Should I put a delay and the command execution (Install, Uninstall, Stop, Start) and add a delay in the event assertion too ?
I take a look assertServiceAvailable(), but don't got your suggestion. how could I use it to check that a Service is not available instead?
thanks,
Cristiano
--
"Tudo vale a pena se a alma não é pequena..."