Community

On demand resolution

reply from Thomas Diesler in JBoss Microcontainer Development - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer Development at Community