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 2016/02/05 23:06:39 UTC

[jira] [Updated] (SLING-5427) The jcr:created and jcr:lastModified properties are not read for mocked resources created through the ContentLoader

     [ https://issues.apache.org/jira/browse/SLING-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seifert updated SLING-5427:
----------------------------------
    Attachment: SLING-5427-test.patch

added a patch [^SLING-5427-test.patch] with a first rough unit test to test import of the given json file.

> 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
>         Attachments: SLING-5427-test.patch
>
>
> 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)