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

Justin Edelson commented on SLING-6841:
---------------------------------------

[[email protected]] possibly I'm doing something wrong.

This test fails with the latest trunk:

{code}
public class ResourceResolverFactoryTest {

    @Rule
    public SlingContext context = new 
SlingContext(ResourceResolverType.RESOURCERESOLVER_MOCK);

    @Test
    public void test() {
        Assert.assertNotNull(context.getService(ResourceResolverFactory.class));
    }
}
{code}

Is that expected?

> 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