You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2015/08/10 16:42:45 UTC

[jira] [Resolved] (SLING-4932) Sling Mock: Make compatible with o.a.s.jcr.resource 2.5.0

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

Konrad Windszus resolved SLING-4932.
------------------------------------
    Resolution: Fixed

Fixed with https://svn.apache.org/r1695088.

> Sling Mock: Make compatible with o.a.s.jcr.resource 2.5.0
> ---------------------------------------------------------
>
>                 Key: SLING-4932
>                 URL: https://issues.apache.org/jira/browse/SLING-4932
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>    Affects Versions: Testing Sling Mock 1.4.0
>            Reporter: Konrad Windszus
>
> Currently if using sling-mock 1.4 with a dependencyManagement setting the version of jcr.resource to 2.5 the following error can be observed while executing tests
> {code}
> org.apache.sling.testing.mock.osgi.ReferenceViolationException: Unable to inject mandatory reference 'pathMapper' for class org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProviderFactory : no matching services were found.
> 	at org.apache.sling.testing.mock.osgi.OsgiServiceUtil.injectServiceReference(OsgiServiceUtil.java:313)
> 	at org.apache.sling.testing.mock.osgi.OsgiServiceUtil.injectServices(OsgiServiceUtil.java:289)
> 	at org.apache.sling.testing.mock.osgi.MockOsgi.injectServices(MockOsgi.java:118)
> 	at org.apache.sling.testing.mock.sling.MockJcrResourceResolverFactory.getResourceResolverInternal(MockJcrResourceResolverFactory.java:66)
> 	at org.apache.sling.testing.mock.sling.AbstractMockResourceResolverFactory.getAdministrativeResourceResolver(AbstractMockResourceResolverFactory.java:106)
> 	at org.apache.sling.testing.mock.sling.context.SlingContextImpl.resourceResolver(SlingContextImpl.java:179)
> 	at org.apache.sling.testing.mock.sling.context.SlingContextImpl.load(SlingContextImpl.java:237)
> .....
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)