[
https://jira.jboss.org/browse/JBOSGI-388?page=com.atlassian.jira.plugin.s...
]
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@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