[ 
https://issues.apache.org/jira/browse/SLING-6077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15533084#comment-15533084
 ] 

Stefan Seifert commented on SLING-6077:
---------------------------------------

problem does not exist in sling-mock 1.x, added unit test to make sure in rev. 
1762796 


> 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)

Reply via email to