Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Testing Sling Mock 1.2.0
-
None
Description
Although JCR Mocks supports mocking queries (https://sling.apache.org/documentation/development/jcr-mock.html#mocking-queries) this is not being propagated to the Sling API when using Sling Mocks with JCR_MOCK as the resource resolver type. Whenever you execute ResourceResolver.findResources on such a mock it will always return no results.
The expected behaviour would be that any mocked queries through MockJcr.setQueryResult would be considered also for ResourceResolver.findResources. Attached is a test case for Sling Mocks which currently fails due to findResource not returning anything.
Attachments
Attachments
Issue Links
- blocks
-
SLING-4388 Use sling mocks for the validation core tests
- Closed