GitHub user ramboz opened a pull request:
https://github.com/apache/sling/pull/245
SLING-6986 - The ResourceResolver mock does not test the resource type
hierarchy in isResourceType
Create a simple improvement, where we check:
- the `sling:resourceType` property on the resource
- then fallback to the `sling:resourceSuperType` property
- then fallback to the `jcr:primaryType` property
Also adding a unit test for it.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ramboz/sling SLING-6986
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/sling/pull/245.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #245
----
commit daaa3791647314645d6c535cd23eadb961a74387
Author: Julien Ramboz <[email protected]>
Date: 2017-06-28T00:30:35Z
SLING-6986 - The ResourceResolver mock does not test the resource type
hierarchy in isResourceType
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---