[arquillian-issues] [JBoss JIRA] Commented: (ARQ-191) Support the notion of shrinkwrap BundleArchive

Andrew Lee Rubinger (JIRA) jira-events at lists.jboss.org
Fri Jun 25 18:32:46 EDT 2010


    [ https://jira.jboss.org/browse/ARQ-191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12537105#action_12537105 ] 

Andrew Lee Rubinger commented on ARQ-191:
-----------------------------------------

Likely to be done implicitly via SHRINKWRAP-139 and an OSGi extension to SW

> Support the notion of shrinkwrap BundleArchive 
> -----------------------------------------------
>
>                 Key: ARQ-191
>                 URL: https://jira.jboss.org/browse/ARQ-191
>             Project: Arquillian
>          Issue Type: Task
>          Components: OSGi Containers
>            Reporter: Thomas Diesler
>
> Currently we create test bundles like this
>       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);
> This should be done much easier via a BundleArchive

-- 
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

        


More information about the arquillian-issues mailing list