jackalope
jackalope copied to clipboard
Implement Sling ResourceResolver Query APIs
Implementing APIs like findResources()
and queryResources()
will enable testing JCR / Sling operations that involve querying for resources.
Can you give an example of how you'd like to use them for testing? Obviously parsing and/or doing anything "real" with the query APIs is beyond scope, so are you looking for simple mocking or...?
The way I am currently using it as is : https://github.com/TWCable/grabbit/pull/107/files#diff-0fd487f301779cf4b25e340761628b38R310
So, the current need is basically to just return nodes based on property comparisons
:-). It is also using ISDESCENDANTNODE
but I suppose that could be skipped (and can just iterate over the complete mock repository)