LOG.error("Bundle [{}] is not resolved", bundleId);
hasUnresolvedBundles = true;
}
}
catch (BundleException exc) {
throw new TestContainerException(exc);
}
}
ConfigurationManager cm = new ConfigurationManager();
boolean failOnUnresolved = Boolean.parseBoolean(cm.getProperty(EXAM_FAIL_ON_UNRESOLVED_KEY,
"false"));
if (hasUnresolvedBundles && failOnUnresolved) {
throw new TestContainerException(
"There are unresolved bundles. See previous ERROR log messages for details.");
}
}