[ 
https://issues.apache.org/jira/browse/SLING-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15135116#comment-15135116
 ] 

Stefan Seifert commented on SLING-5427:
---------------------------------------

what behavior do you expect? to have any values for those properties (like in a 
real JCR where you cannot set the value for jcr:created, but it is set 
automatically on node creation)?
or to import the values 1:1 from JSON file, perhaps only if the underlying 
resource resolver type is RESOURCERESOLVER_MOCK and not JCR-based?

> The jcr:created and jcr:lastModified properties are not read for mocked 
> resources created through the ContentLoader
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-5427
>                 URL: https://issues.apache.org/jira/browse/SLING-5427
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>    Affects Versions: Testing Sling Mock 1.6.0
>            Reporter: Radu Cotescu
>
> Assuming one wants to import the following structure for a test:
> {noformat}
> "list-children-paginated": {
>     "jcr:primaryType"   : "nt:unstructured",
>     "jcr:createdBy"     : "admin",
>     "orderBy"           : "jcr:created",
>     "jcr:lastModifiedBy": "admin",
>     "feedEnabled"       : true,
>     "pageMax"           : "2",
>     "jcr:created"       : "Mon Jan 11 2016 15:23:53 GMT+0100",
>     "limit"             : "0",
>     "displayAs"         : "default",
>     "jcr:lastModified"  : "Tue Jan 12 2016 15:40:55 GMT+0100",
>     "sling:resourceType": "project/components/list",
>     "listFrom"          : "children"
> }
> {noformat}
> the {{Resource}} obtained from the {{RESOURCERESOLVER_MOCK}} will not have 
> the {{jcr:created}} / {{jcr:lastModified}} properties defined in its 
> {{ValueMap}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to