You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Jörg Hoh (JIRA)" <ji...@apache.org> on 2019/05/20 17:26:00 UTC
[jira] [Created] (SLING-8426) Sling Mocks should validate for
closed ResourceResolvers
Jörg Hoh created SLING-8426:
-------------------------------
Summary: Sling Mocks should validate for closed ResourceResolvers
Key: SLING-8426
URL: https://issues.apache.org/jira/browse/SLING-8426
Project: Sling
Issue Type: Improvement
Components: Testing
Reporter: Jörg Hoh
It would be good if the SlingMock library could include some checks after tests, that
* {{the default resource resolver (context.resourceresolver()) is not closed.}}
* that any resource resolver opened by other means is closed properly.
And fail the test if the resource resolver is not properly handled (closed/not closed).
While this does not necessarily mean that the code handles the resourceresolvers well (you could implement the correct handling in the testcase, and leaving an insufficient one in the actual code), it can help to point out the problem, that the resourceResolvers are not properly handled.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)