Stefan Seifert created SLING-11811:
--------------------------------------
Summary: 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
Fix For: Context-Aware Configuration Mock Plugin 1.4.2
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)