resource resolver mock in test not able to adapt query builder
Hi ,
I am facing one issue with sling model junit mock. I have created an resource resolver mock in the test file and in the model we are adapting resource resolver to query builder. while accessing through test case it is returning null value.
Model code snippet :
resourceResolver.adaptTo(QueryBuilder.class)
Resource resolver mock is created through AEM context object only.
Let me know your thoughts on the same.
Thanks,
Ravi Joshi
