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 2016/12/04 10:38:58 UTC

[jira] [Resolved] (SLING-6363) sling-mock: Automatically register Sling Models from Classpath

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

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

Completed: At revision: 1772518  (2.x)

> sling-mock: Automatically register Sling Models from Classpath
> --------------------------------------------------------------
>
>                 Key: SLING-6363
>                 URL: https://issues.apache.org/jira/browse/SLING-6363
>             Project: Sling
>          Issue Type: New Feature
>          Components: Testing
>            Reporter: Stefan Seifert
>            Assignee: Stefan Seifert
>              Labels: mocks
>             Fix For: Testing Sling Mock 1.9.0, Testing Sling Mock 2.2.0
>
>
> up to this version sling models in unit tests only worked when registered beforehand with the addModelsForPackage(...) method.
> when running unit test with sling mocks existing bundle headers in MANIFEST files in the class path should be scanned for {{Sling-Model-Packages}} and {{Sling-Model-Classes}} entries, and those should be registered automatically.



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