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/10/02 19:01:27 UTC

[jira] [Created] (SLING-5089) mock-osgi: Deactivate all services on shutdown

Stefan Seifert created SLING-5089:
-------------------------------------

             Summary: mock-osgi: Deactivate all services on shutdown
                 Key: SLING-5089
                 URL: https://issues.apache.org/jira/browse/SLING-5089
             Project: Sling
          Issue Type: New Feature
          Components: Testing
    Affects Versions: Testing OSGi Mock 1.5.0
            Reporter: Stefan Seifert
            Assignee: Stefan Seifert
             Fix For: Testing OSGi Mock 1.5.2


currently not deactivate method is called on registered osgi services if it is not done explicitly in the unit test code.
this may cause problems if the services has opened resources (e.g. files, threads) that needs to be cleaned up in the deactivate method.

we should deactivate all registered services when each unit test run is complete.



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