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

Stefan Seifert reassigned SLING-7712:
-------------------------------------

    Assignee: Stefan Seifert
     Summary: sling-mock: make register Sling Models from classpath optional  
(was: slig-mock: make register Sling Models from classpath optionaly)

wouldn't it be better to register the custom injectors in context.beforeSetup()?

nevertheless i makes sense to make the automatic registration of models from 
the classpath configurable (default: activated) when they are huge number of 
models.

> sling-mock: make register Sling Models from classpath optional
> --------------------------------------------------------------
>
>                 Key: SLING-7712
>                 URL: https://issues.apache.org/jira/browse/SLING-7712
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>    Affects Versions: Testing Sling Mock 1.9.12, Testing Sling Mock 2.2.18
>            Reporter: Andrey Bardashevsky
>            Assignee: Stefan Seifert
>            Priority: Major
>
> Registering all sling models from classpath leads to slow down tests 
> dramatically.
> Steps to reproduce:
>  # Register several models.
>  # In context.afterSetup() register several custom injetors that implements 
> StaticInjectAnnotationProcessorFactory
> Each injector registration leads to update every model (ModelAdapterFactory) 
> that slow downs test dramatically, when you have 300+ models and 5-6 
> injectors that register in setup method before each test.
> Workaround is to register injectors before models.
> Please implement optional registration all sling models from classpath.
>  



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

Reply via email to