1 2 Previous Next 15 Replies Latest reply on Apr 1, 2010 9:30 AM by thomas.diesler Go to original post
      • 15. Re: On demand resolution
        thomas.diesler

        In case you don't know ...

         

        You can run most of the framework tests against Felix and Equinox. This is sometimes useful when you want to see how the RI behaves.

         

        [tdiesler@tdvaio bundle]$ mvn -Dtest=DynamicImportPackageTestCase test
        
        Running org.jboss.test.osgi.classloader.DynamicImportPackageTestCase
        Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.62 sec <<< FAILURE!
        
        [tdiesler@tdvaio bundle]$ mvn -Dframework=felix -Dtest=DynamicImportPackageTestCase test
        
        Running org.jboss.test.osgi.classloader.DynamicImportPackageTestCase
        Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.469 sec
        
        
        

         

        This of course does not work for unit tests that use non standard OSGi API.

        i.e you cannot build/run the entire testsuite with another framework - only individual tests

        1 2 Previous Next