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 2015/02/19 18:44:11 UTC

[jira] [Resolved] (SLING-4434) Sling Mock: MockModelAdapterFactory not compatible with latest Sling Models Impl

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

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

Completed: At revision: 1660951  

MockModelAdapterFactory subclass is removed and instead the ModelAdapterFactory is used directly using the new osgi-mock dynamic service referencing feature (SLING-4439). this also simplifies the code and makes it more robust for future updates.

> Sling Mock: MockModelAdapterFactory not compatible with latest Sling Models Impl
> --------------------------------------------------------------------------------
>
>                 Key: SLING-4434
>                 URL: https://issues.apache.org/jira/browse/SLING-4434
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>    Affects Versions: Testing Sling Mock 1.1.2
>            Reporter: Stefan Seifert
>            Assignee: Stefan Seifert
>            Priority: Minor
>              Labels: mocks
>             Fix For: Testing Sling Mock 1.2.0
>
>
> the current sling mock MockModelAdapterFactory implementation is not compatible with the latest sling models implementation because it does not support InjectAnnotationProcessorFactory2 and StaticInjectAnnotationProcessorFactory interfaces.
> a better solution than the current hard-wired mock wiring of injectors would be to enhance the osgi mock and bind/unbind them dynamically, then the new interfaces would be supported as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)