[JBoss JIRA] Created: (ARQ-199) Add support to controll multiple framework instances
by Thomas Diesler (JIRA)
Add support to controll multiple framework instances
----------------------------------------------------
Key: ARQ-199
URL: https://jira.jboss.org/browse/ARQ-199
Project: Arquillian
Issue Type: Feature Request
Components: OSGi Containers
Reporter: Thomas Diesler
It would also be nice if it could support controlling multiple framework instances. As mentioned before, an OSGi Framework can be controlled using a standard interface: org.osgi.framework.launch.Framework extends Bundle. In some test scenarios (especially ones involving Distributed OSGi) you'd want to bring up multiple frameworks and run tests bundles in both of them. The unit test would then essentially orchestrate the whole thing and make assertions on behaviour in these two frameworks which can be obtained through the bundle context of either.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (ARQ-193) Create auxillary OSGi test bundle
by Thomas Diesler (JIRA)
Create auxillary OSGi test bundle
---------------------------------
Key: ARQ-193
URL: https://jira.jboss.org/browse/ARQ-193
Project: Arquillian
Issue Type: Task
Components: OSGi Integration
Reporter: Thomas Diesler
Currently the test bundle must contain the test case and a number of Import-Package statemetns related to the test infrastructure
@Deployment
public static JavaArchive createdeployment()
{
final JavaArchive archive = ShrinkWrap.create("test.jar", JavaArchive.class);
archive.setManifest(new Asset()
{
public InputStream openStream()
{
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addBundleActivator(SimpleActivator.class.getName());
// [TODO] generate a separate bundle the contains the test case
builder.addExportPackages(OSGiEmbeddedFrameworkTestCase.class);
builder.addImportPackages("org.jboss.arquillian.junit", "org.jboss.shrinkwrap.api", "org.jboss.shrinkwrap.api.spec");
builder.addImportPackages("javax.inject", "org.junit", "org.junit.runner");
return builder.openStream();
}
});
archive.addClasses(SimpleActivator.class, SimpleService.class);
archive.addClasses(OSGiEmbeddedFrameworkTestCase.class);
return archive;
}
There test bundle should not need to contain the test case nor these additional imports. An auxillary bundle that contains the test case should be generated and installed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months