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

Stefan Seifert resolved SLING-8351.
-----------------------------------
    Resolution: Fixed

https://github.com/apache/sling-org-apache-sling-testing-sling-mock/commit/fad64c251d97972075468b5aee781e83d4a4c141

it seems the solution is simple:  enable reregisterExisting when registering 
node type definitions

> sling-mock NodeTypeDefinitionScanner: avoid problems with same node type 
> registered multiple times with different definitions
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-8351
>                 URL: https://issues.apache.org/jira/browse/SLING-8351
>             Project: Sling
>          Issue Type: Improvement
>    Affects Versions: Testing Sling Mock 2.3.6
>            Reporter: Stefan Seifert
>            Assignee: Stefan Seifert
>            Priority: Major
>             Fix For: Testing Sling Mock 2.3.8
>
>
> the NodeTypeDefinitionScanner automatically detects all node types listed in 
> {{Sling-Nodetypes}} property in any MANIFEST.MF found in the classpath. 
> however, the order in which the node types are found and registered is not 
> predictable.
> if multiple cnd files found in this way register the same node type and 
> expect to be executed in a defined order this may fail in sling-mock.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to