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

Stefan Seifert commented on SLING-6841:
---------------------------------------

since SLING-6812 this happens unfortunately. if you call 
context.resourceResolver() before it should work, but this is perhaps a bit 
unexpected.

when we apply this laziness only for "NONE" resource resolver type your code 
would work again. this would be my proposal.

> Sling Mocks should inject ResourceResolverFactory by default
> ------------------------------------------------------------
>
>                 Key: SLING-6841
>                 URL: https://issues.apache.org/jira/browse/SLING-6841
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Justin Edelson
>             Fix For: Testing Sling Mock 2.2.8
>
>
> SlingContextImpl doesn't register a ResourceResolverFactory by default. This 
> should be one of the default services.



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

Reply via email to