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

Stefan Seifert resolved SLING-11811.
------------------------------------
      Assignee: Stefan Seifert
    Resolution: Fixed

https://github.com/apache/sling-org-apache-sling-testing-caconfig-mock-plugin/commit/5eb36b1ac6674360acbf74cc7aa6b12e7eb0dd84

> caconfig Mock Plugin: Register Sling Models injector in beforeSetUp
> -------------------------------------------------------------------
>
>                 Key: SLING-11811
>                 URL: https://issues.apache.org/jira/browse/SLING-11811
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>    Affects Versions: Context-Aware Configuration Mock Plugin 1.4.0
>            Reporter: Stefan Seifert
>            Assignee: Stefan Seifert
>            Priority: Major
>             Fix For: Context-Aware Configuration Mock Plugin 1.4.2
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> in line with 
> [https://github.com/wcm-io/io.wcm.testing.wcm-io-mock.sling/pull/4] and 
> following the discussion in 
> [https://github.com/wcm-io/io.wcm.testing.aem-mock/issues/5] sling models 
> injectrs in sling mocks plugin should be registered in *beforeSetUp* instead 
> of afterSetUp, to ensure they are present before the auto-registration of 
> sling models found in classpath is executed.
> otherwise all sling models are re-registered (it seems even multiple times) 
> if the injector is added later.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to