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:21:59 UTC

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

Stefan Seifert created SLING-6363:
-------------------------------------

             Summary: 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
             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)