[jboss-user] [JBoss Microcontainer Development] - On demand resolution

Thomas Diesler do-not-reply at jboss.com
Wed Mar 31 18:50:23 EDT 2010


Thomas Diesler [http://community.jboss.org/people/thomas.diesler%40jboss.com] replied to the discussion

"On demand resolution"

To view the discussion, visit: http://community.jboss.org/message/535026#535026

--------------------------------------------------------------
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 at 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 at 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
[http://community.jboss.org/message/535026#535026]

Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2115]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100331/57e85744/attachment.html 


More information about the jboss-user mailing list