sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seifert (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (SLING-6812) sling-mock: Lazy initialization of ResourceResolverFactory
Date Fri, 05 May 2017 16:37:04 GMT

     [ https://issues.apache.org/jira/browse/SLING-6812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stefan Seifert closed SLING-6812.
---------------------------------

> sling-mock: Lazy initialization of ResourceResolverFactory
> ----------------------------------------------------------
>
>                 Key: SLING-6812
>                 URL: https://issues.apache.org/jira/browse/SLING-6812
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>    Affects Versions: Testing Sling Mock 2.2.6
>            Reporter: Stefan Seifert
>            Assignee: Stefan Seifert
>              Labels: mocks
>             Fix For: Testing Sling Mock 2.2.8
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message