use of org.osgi.framework.dto.BundleDTO in project bnd by bndtools.
the class AgentTest method testAgentInstallBundleFromURL.
public void testAgentInstallBundleFromURL() throws Exception {
BundleDTO bundle = supervisor.getAgent().installFromURL(t3.getAbsolutePath(), t3.toURI().toURL().toExternalForm());
assertNotNull(bundle);
assertEquals(4, bundle.id);
assertEquals("bsn-3", bundle.symbolicName);
assertEquals("3.0.0", bundle.version);
assertEquals(5, supervisor.getAgent().getBundles().size());
}
use of org.osgi.framework.dto.BundleDTO in project bnd by bndtools.
the class AgentTest method testAgentInstallBundle.
public void testAgentInstallBundle() throws Exception {
String sha = supervisor.addFile(t3);
BundleDTO bundle = supervisor.getAgent().install(t3.getAbsolutePath(), sha);
assertNotNull(bundle);
assertEquals(4, bundle.id);
assertEquals("bsn-3", bundle.symbolicName);
assertEquals("3.0.0", bundle.version);
}
Aggregations