You have to deploy a class if you want to be able to use it. Remember, the point of OSGi is it loads class defi nitions from a bundle and into a classloader. Therefore you need to put the class into a bundle so it's available in a classloader. This is the most basic principle of osgi and is no different than how any of your other classes are handled.
Ryan On Apr 30, 2014 4:06 AM, "xav" <[email protected]> wrote: > Hi Benjamin, > > I don't deploy the CommonConfigurationFactory, it's just an absrtract > class, > not a bundle. > > But all my test (in different folder (module) use it. So in pax exam when I > try to use it (because my TestClass extend it), I have > ClassNotFoundExceptions, if I don't use > probe.addTest(CommonConfigurationFactory.class) ..... > > Regards > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/integrating-test-with-pax-exam-tp4032704p4033010.html > Sent from the Karaf - User mailing list archive at Nabble.com. >
