jackalope icon indicating copy to clipboard operation
jackalope copied to clipboard

Implement Sling ResourceResolver Query APIs

Open sagarsane opened this issue 8 years ago • 2 comments

Implementing APIs like findResources() and queryResources() will enable testing JCR / Sling operations that involve querying for resources.

sagarsane avatar Apr 11 '16 16:04 sagarsane

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...?

jdigger avatar Apr 17 '16 11:04 jdigger

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)

sagarsane avatar Apr 18 '16 15:04 sagarsane