Hi,

> I don't deploy the CommonConfigurationFactory, it's just an abstract class, 
> not a bundle.
There's your problem.

How should the test container load and use the contents of the 
CommonConfigurationFactory class when it's not deployed to your container?

Even if you have
> class MyExtension extends CommonConfigurationFactory
and deploy MyExtension to the container, it will still try to find and load 
CommonConfigurationFactory. Note that the contents of the latter are not 
compiled into your extending class. At any point, if the class MyExtension is 
loaded, the classloader will always have to load both the base class 
(CommonConfigurationFactory) and the extending class (MyExtension).

Regards,
Benjamin


-----Original Message-----
From: xav [mailto:[email protected]] 
Sent: Mittwoch, 30. April 2014 10:05
To: [email protected]
Subject: RE: integrating test with pax-exam

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.

Reply via email to