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 2023/03/31 18:31:00 UTC

[jira] [Closed] (SLING-11811) caconfig Mock Plugin: Register Sling Models injector in beforeSetUp

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

Stefan Seifert closed SLING-11811.
----------------------------------

> 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)