OSGi Unit Testing
Activity
Brett Meyer March 7, 2014 at 10:08 PM
Bulk closing tickets resolved in released versions
Brett Meyer July 1, 2013 at 8:55 PM
Keeping out of 4.2 – there were a few CI fixes that I'd rather not have in a minor release.
Brett Meyer June 5, 2013 at 8:15 PM
I have a work-in-progress with Pax Exam, Tinybundles, and Felix: https://github.com/brmeyer/hibernate-orm/tree/master-osgi-test
However, I hit a roadblock – documented in https://ops4j1.jira.com/browse/PAXTB-15. Classes are stripped of annotations when added to Tinybundles, which is obviously problematic for JPA.
I experimented with other hacky solutions, like attempting to force in a classloader that new where to look for the entity class and persistence.xml, but that sidesteps the entire concept of having a client bundle. For now, I'd like to hold off and do it correctly.
Brett Meyer June 5, 2013 at 7:27 PM
I took a stab at Arquillian, but hit many roadblocks – mainly having to do with lack of documentation or support around embedded containers for standalone tests. This thread began to discuss it: http://lists.jboss.org/pipermail/jboss-osgi-dev/2013-June/000349.html
Investigate ways to unit test hibernate-osgi. Pax Exam?