Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3219

ResourceResolverTest should be an OSGi test case, and use events instead of sleep

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Launchpad Test Services 2.0.6
    • None
    • Testing
    • None

    Description

      The ResourceResolverTest is run in a weird way from a JSP script from the integration-tests module, which makes it a bit hard to debug and prevents it from using JUnit features.

      Also, it uses sleep to wait for mapping changes to be activated. This makes it fragile, and it fails sometimes with Oak where observation events are currently (V0.9) delivered less often than in Jackrabbit.

      I'll refactor it as a real JUnit test and instead of sleep() use the org/apache/sling/api/resource/ResourceResolverMapping/CHANGED event that the mapping subsystem delivers to indicate mapping changes.

      Attachments

        Issue Links

          Activity

            People

              bdelacretaz Bertrand Delacretaz
              bdelacretaz Bertrand Delacretaz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: