My servlet checks the entered username and password. For ex: If username is null then I am setting error in the request i.e request.setAttribute(). If credentials are valid then I forward the request to welcome page. How do I write test cases for RequestDispatcher and request.setAttribute() methods.
Asked
Active
Viewed 135 times