I am writing an integration test using Spring DM and I still climbing the learning curve :-).
I noticed that when I write a test, part of it is executed outside of the OSGi bundle (e.g. getTestBundlesNames()), while other methods (e.g. the test methods) are executed inside the OSGi container. The problem is that I still have to import everything in the container, even those packages that I only use outside of the container. I was wondering if there is a better way to separate the two stages...
In my case another solution to the same problem would come from really splitting framework bundles from test bundles (right now it's just a logical distinction and they are merged and started at the same time in the container). Basically I want to load some bundles (the framework) whose services I am then going to leverage to prepare my test execution (e.g. I want to start the OBR service, so that I can get my dependencies from there). Is there a way of cleanly doing it? I couldn't find a good hook for that.
Thanks for your ideas,
-rico




