You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (JIRA)" <ji...@apache.org> on 2015/08/13 17:54:46 UTC
[jira] [Reopened] (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 ]
Stefan Seifert reopened SLING-4932:
-----------------------------------
Assignee: Konrad Windszus
making it compatible is good, but raising the dependency esp. of the Sling API for this is not good.
see my response to a related mail thread on this:
http://apache-sling.73963.n3.nabble.com/Sling-JCR-Mocks-testing-dependencies-and-imported-ranges-tp4051852p4053698.html
i've looked into details if we can solve this without raising the dependencies.
> 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: Konrad Windszus
> 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)