Hi Bertrand,

Following our discussion in SLING-4541 I completely agree that unit testing
of BundleContentProvider as pretty hard and difficult to understand. So use
of PaxExam looks a very good idea.
Few days ago I already tried to write some PaxExam tests for
DefaultContentCreator and got a ClassNotFoundException
on DefaultContentCreator class explicit initialization.
I loaded a bundle for test but it doesn't help me. I tried it to initialize
with @Inject annotation but it didn't help me as well. Probably I do
something wrong? Does injection works only for Services?

Best regards,
Petr

Reply via email to