[jboss-osgi-issues] [JBoss JIRA] Commented: (JBOSGI-388) Migrate all remaining Husky tests to Arquillian
David Bosschaert (JIRA)
jira-events at lists.jboss.org
Wed Sep 8 04:40:50 EDT 2010
[ https://jira.jboss.org/browse/JBOSGI-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12549584#action_12549584 ]
David Bosschaert commented on JBOSGI-388:
-----------------------------------------
How do I get access to the bundle context in the Arquillian based tests?
I have the following code:
public class StartLevelArquillianTestCase
{
@Inject
public OSGiContainer container;
@Test
public void testGeneratedBundle() throws Exception
{
Archive<?> archive = container.getTestArchive("arq194-bundle");
Bundle bundle = container.installBundle(archive);
System.out.println("*** " + bundle.getBundleContext());
It turns out that bundle.getBundleContext() returns null...
> Migrate all remaining Husky tests to Arquillian
> -----------------------------------------------
>
> Key: JBOSGI-388
> URL: https://jira.jboss.org/browse/JBOSGI-388
> Project: JBoss OSGi
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Reporter: Thomas Diesler
> Assignee: David Bosschaert
> Fix For: JBossOSGi 1.0.0 Beta9
>
>
> [tdiesler at tdvaio testsuite]$ git grep BridgeFactory | grep import
> BundleUpdateTestCase.java
> PackageAdminTestCase.java
> StartLevelTestCase.java
> Have a look at the ARQ194... test cases in
> http://github.com/jbosgi/arquillian/tree/jbosgi
--
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 jboss-osgi-issues
mailing list