in src/main/java/org/apache/sling/testing/clients/osgi/BundlesInstaller.java [189:208]
public void startAllBundles(final List<String> symbolicNames, int timeout) throws InterruptedException, TimeoutException {
log.info("Starting bundles (timeout {} seconds): {}", timeout, symbolicNames);
Polling p = new Polling() {
@Override
public Boolean call() throws Exception {
boolean allActive = true;
for (String bundle : symbolicNames) {
String state = osgiConsoleClient.getBundleState(bundle);
if (!state.equalsIgnoreCase(ACTIVE_STATE)) {
osgiConsoleClient.startBundle(bundle);
allActive = false;
}
}
return allActive;
}
};
p.poll(timeout, 500);
}