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

sling-mock: Lazy initialization of ResourceResolverFactory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Testing Sling Mock 2.2.6
    • Testing Sling Mock 2.2.8
    • Testing

    Description

      latest version of sling resource resolver implementation do not register the ResourceResolverFactory unless at least one ResourceProvider instance is registered.

      when using ResourceResolverType.NONE this did not work because the ResourceResolverFactory was tried to initialize before starting the unit test. doing this lazily on first acccess solves the problem.

      Attachments

        Issue Links

          Activity

            People

              sseifert Stefan Seifert
              sseifert Stefan Seifert
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: