[
https://issues.apache.org/jira/browse/SLING-4773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14574103#comment-14574103
]
Konrad Windszus commented on SLING-4773:
----------------------------------------
Actually it is the same issue as described in SLING-4362 which was supposed to
be fixed with JCR Mock 1.1.4 and Sling Mocks 1.2. Unfortunately even in Sling
Mock 1.3 this does not yet work, because there was no real test case added for
that in SLING-4362.
> SlingMocks always returns the value of property jcr:primaryType for
> Resource.getResourceType()
> ----------------------------------------------------------------------------------------------
>
> Key: SLING-4773
> URL: https://issues.apache.org/jira/browse/SLING-4773
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Affects Versions: Testing Sling Mock 1.3.0
> Reporter: Konrad Windszus
> Attachments: SLING-4773-testcase-v1.diff
>
>
> Even if a resource was created with {{sling:resourceType}} being set to some
> value calling {{Resource.getResourceType()}} will always return the value of
> its "jcr:primaryType" property, even if the "sling:resourceType" property is
> being set.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)