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