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 2015/02/02 12:27:34 UTC

[jira] [Resolved] (SLING-4362) [jcr mocks] Resource type not correctly loaded when using jcr mock

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

Stefan Seifert resolved SLING-4362.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: Testing Sling Mock 1.1.4
                   Testing JCR Mock 1.1.4

Completed: At revision: 1656442  

fixed in JCR mock 1.1.3-SNAPSHOT, and added unit test in sling mock to ensure the expected behavior.

> [jcr mocks] Resource type not correctly loaded when using jcr mock
> ------------------------------------------------------------------
>
>                 Key: SLING-4362
>                 URL: https://issues.apache.org/jira/browse/SLING-4362
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>    Affects Versions: Testing JCR Mock 1.1.2
>            Reporter: Nicolas Peltier
>            Assignee: Stefan Seifert
>             Fix For: Testing JCR Mock 1.1.4, Testing Sling Mock 1.1.4
>
>
> when setting resource resolver type to 
> ResourceResolverType.JCR_MOCK 
> such loaded json 
> {Code}
> {
>     "jcr:primaryType":"nt:unstructured",
>     "sling:resourceType": "fooType",
>     "thisIs": "child"
> }
> {Code}
> to /content
> gives /content/foo a resourceType == "nt:unstructured" instead of fooType, other properties (here thisIs) are correctly loaded



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