I'm writing a Junit test case for a resourceType servlet. A configuration is referenced like below in the servlet.
Views
Replies
Total Likes
hi @goyalkritika,
Check that the implementation of SessionMgmtConfigImpl returns a valid value for getProjectContentPath(). In the case of this method returning null, the NPE would occur. but for better understanding could you please share complete error info here?
Do I need to mock the config implementation as well?
Here is the snippet of the error -
See i told you it is not returning valid value, i can see it is throwing null pointer. try mocking it
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies