New Participant
Jul 27, 2023 2:20 PM UTC
Solved
Junit Test on SlingFilter
- 2 replies
- 902 views
- Translate
Hi,
I have created a Sling filter and now I need to test it using JUnit. However, the test case is not running and is showing an error in the JUnit test.
The error in JUnit is pointing to the line,
MockSlingHttpServletRequest request = new MockSlingHttpServletRequest(context.resourceResolver());
Kindly provide me with a solution to make the test run successfully.
Thanks,
Lokesh