Solved
Resource is returning Null from Sling Model class in JUnit
I have added details of the issue on below link.
Can you please let me know if I am missing anything.
I have added details of the issue on below link.
Can you please let me know if I am missing anything.
Hi @ks_hitijingole,
From the log statement, resource named "componentResource" that you are injecting in the model is null. (which is the starting point in the getFaqQuestionAnswerArray() method) because of this it a NPE on getFaqQuestionAnswerArray() method from the test class.
Could you please share your
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.