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

Stefan Seifert resolved SLING-10245.
------------------------------------
    Fix Version/s: Testing JCR Mock 1.5.4
         Assignee: Stefan Seifert
       Resolution: Fixed

thanks!
https://github.com/apache/sling-org-apache-sling-testing-jcr-mock/commit/123afaa66c0f9d82c966052ce5c282a1132683da

> JCR Mocks: Allow setting of primary type for MockNode
> -----------------------------------------------------
>
>                 Key: SLING-10245
>                 URL: https://issues.apache.org/jira/browse/SLING-10245
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Roy Teeuwen
>            Assignee: Stefan Seifert
>            Priority: Major
>             Fix For: Testing JCR Mock 1.5.4
>
>
> The method setPrimaryType is not available on the MockNode implementation.
> When using Sling Mocks in conjunction with JCR Mocks, making a new node with 
> valueMap.putAll(otherValueMap) will also trigger setting the jcr:primaryType 
> using the setPrimaryType method of a Node. 
> Currently this is not supported but it should be an easy addition if you set 
> the property with the node.setProperty method and add the NodeType to the 
> ItemData
> Proposed fix:
> https://github.com/apache/sling-org-apache-sling-testing-jcr-mock/pull/6#pullrequestreview-616895830



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to