[
https://issues.apache.org/jira/browse/SLING-6077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Seifert closed SLING-6077.
---------------------------------
> sling-mock: ResourceResolverFactory is registered twice
> -------------------------------------------------------
>
> Key: SLING-6077
> URL: https://issues.apache.org/jira/browse/SLING-6077
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Affects Versions: Testing Sling Mock 2.1.0
> Reporter: Stefan Seifert
> Assignee: Stefan Seifert
> Labels: mocks
> Fix For: Testing Sling Mock 2.1.2
>
>
> when using sling mocks the ResourceResolverFactory service is registered
> twice. this is not obvious because everything is well for most operations.
> but if an OSGi service references it like this:
> {code:java}
> @Reference
> private ResourceResolverFactory factory;
> {code}
> it fails because multiple references exist (i'm not sure if this is 100%
> correct in the osgi-mock, need to look up the DS spec).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)