[ 
https://issues.apache.org/jira/browse/FELIX-1538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761209#action_12761209
 ] 

Thomas Diesler commented on FELIX-1538:
---------------------------------------

Hi Richard,

the test that covers this issue is very generic

http://anonsvn.jboss.org/repos/jbossas/projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi142/OSGI142TestCase.java

just throw out the org.jboss.osgi.spi stuff and boot the Felix framework in 
your preferred way.


> Exporter can load classes from importer
> ---------------------------------------
>
>                 Key: FELIX-1538
>                 URL: https://issues.apache.org/jira/browse/FELIX-1538
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.0
>            Reporter: Thomas Diesler
>         Attachments: jbosgi142-bundleA.jar, jbosgi142-bundleB.jar, 
> jbosgi142-bundleX.jar
>
>
> A imports X
> B imports X
> Can X load a class from A or B?
> Can A load a class from B and vice versa?
> testLoadClass(org.jboss.test.osgi.jbosgi142.OSGI142TestCase) Time elapsed: 
> 1.743 sec <<< FAILURE!
> java.lang.AssertionError: ClassNotFoundException expected for: 
> jbosgi142-bundleX loads org.jboss.test.osgi.jbosgi142.bundleA.BeanA
> at org.junit.Assert.fail(Assert.java:92)
> at 
> org.jboss.test.osgi.jbosgi142.OSGI142TestCase.assertBundleLoadClass(OSGI142TestCase.java:105)
> at 
> org.jboss.test.osgi.jbosgi142.OSGI142TestCase.testLoadClass(OSGI142TestCase.java:83)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to