MockAsset#getID() always return empty string
Description
Activity
Show:

Burkhard Pauli August 20, 2018 at 9:17 AM
Thank you for the clarification and for creating the related Sling issue!
stefan seifert August 20, 2018 at 9:11 AM
the implementation in aem-mock is correct.
but perhaps you are not aware that all jcr:uuid properties included in JSON files that are imported in unit tests using sling-mock ContentLoader are automatically removed before importing the content. this is the reason the unit test in aem-mock is not really testing the UUID value.
i've created https://issues.apache.org/jira/browse/SLING-7839 to support jcr:uuid at at leas for resource resolver types where it's possible.
Cannot Reproduce
Details
Details
Assignee
Unassigned
UnassignedReporter

Components
Affects versions
Priority
Created August 14, 2018 at 9:44 AM
Updated August 20, 2018 at 9:19 AM
Resolved August 20, 2018 at 9:19 AM
The latest implementation of the method
io.wcm.testing.mock.aem.MockAsset#getID
always returns an empty String. You can validate this issue by debugging the unit testio.wcm.testing.mock.aem.MockAssetTest#testGetID
. The tesdata has the required propertyjcr:uuid
but the return value of the method is empty.