[ https://issues.apache.org/jira/browse/SLING-4932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14695893#comment-14695893 ]
Stefan Seifert commented on SLING-4932: --------------------------------------- additionally i added a maven profile {{jcr.resource-2.5.4}} to the POM with allows to run the unit tests with jcr.resource 2.5.4 (has to be executed manually, not covered by CI). > 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 > Assignee: Stefan Seifert > Fix For: Testing Sling Mock 1.4.2 > > > 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)