IsolationTestUtils.prepareSampleBundleV2(bundleContext,
getOsgiService(RepositoryGenerator.class),
getOsgiService(RepositoryAdmin.class),
getOsgiService(ModellingManager.class));
AriesApplication newApp = manager.resolve(app, new ResolveConstraint() {
public String getBundleName() {
return "org.apache.aries.isolated.sample";
}
public VersionRange getVersionRange() {
return ManifestHeaderProcessor.parseVersionRange("[2.0.0,2.0.0]", true);
}
});
return manager.update(app, newApp.getDeploymentMetadata());
}