July 27, 2023
Solved
Junit Test on SlingFilter
- July 27, 2023
- 2 replies
- 898 views
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