Hi,

Am I using the right strategy ?

So far I have created wrap for all osgi resolvers, like this (note: default
resolver can be bind() directly) :


TypeConverter is a little bit more complex :


I have then 2 modules, one which bind all interface to OSGI impl :


and one for the default :


In a PaxExam test class, I can check the resolving of component is working,
like this :


In tests not involving PaxExam, I could overwrite these bindings to Default
resolvers to run the application without any BundleContext.

I am now wondering why this test is success :


and fails for this one :


while testing in the OSGI framework which doesn't have quartz in it. Here is
the exception for the second test, which doesn't link to my code, nor the
camel code :
http://pastie.org/private/bvbx1yjmc8rdf110fema5g

Thank you for any feedback.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-using-Guice-and-OSGI-together-and-test-with-Pax-Exam-tp5731311.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to