On Mon, Jun 22, 2015 at 11:33 AM, Robert Munteanu <rob...@lmn.ro> wrote:
> ...It would be interesting to see
> what testing scenario you had in mind and how to better address it -
> whether it's Sling mocks or Pax-Exam or something different....

Yes, I agree that discussing this on a very concrete case would help,
and Petr's intensive work on testing is a good opportunity to come up
with best practices around that.

My comments on SLING-4541 where based on testing the
(bundles/jcr/contentloader) ContentLoaderService's handling of
incoming and updated bundles: it needs to register incoming bundles
which supply initial content, and correctly handle updates to those
bundles.

Testing this is quite natural in a real OSGi environment, though I
agree that that runs slows that unit or mocked tests of course.

Robert, do you think this can be tested in a valid and understandable
way using mocks?

Setting up pax exam is quite easy using our testing/sling-pax-util
module for example (but we should convert that module to use the Sling
provisioning model now).

-Bertrand

Reply via email to