Roy Teeuwen created SLING-10245: ----------------------------------- Summary: 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
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)