I have a handler (subclass of RequestHandler) which handles GET, POST, PUT and DELETE requests. The class also has independent functions which operates on DB. I am writing unit test for the class, but I am not able to initialize the class since it requires 2 arguments. How can I do it?
Note: I don't have issues while testing rest calls.
I solved the issue by making my testcase class a subclass of the class under testing.