Konrad Windszus created SLING-4932: -------------------------------------- Summary: 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: Bug 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)