Ryan, For integration tests of your new OSGi components running against SMX4, the pax-exam based NMR tests[1] provide quite a neat template.
Alternatively, a more cut-down integration testing framework is provided by karaf testing support[2], which has the advantage of more faithfully reproducing the karaf runtime environment (the system properties & packages etc.) I know this doesn't answer your question about existing SMX3 tests, but may give you some ideas about testing your new stuff. Cheers, Eoghan [1] http://svn.apache.org/repos/asf/servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/itests [2] http://svn.apache.org/repos/asf/felix/trunk/karaf/tooling/testing/src/main/java/org/apache/felix/karaf/testing/AbstractIntegrationTest.java On 10 March 2010 17:05, Ryan Moquin <[email protected]> wrote: > I was wondering if there was any way to convert SMX3 unit tests to test > against SMX4? I know SMX4 has a JBI container and that SM3 SAs should > deploy in it, but I've hit some minor snags before. Also, I was > considering > creating some OSGI component, but would like to be able to test those like > I > was testing my SMX3 components. > > Thanks!! > Ryan >
