How to Create a Dummy Request and Response for Servlet Testing.I read about the Apache Jkarta Cactus Project but do not want to go in that much details. Can we just construct a dummy request response and pass it to doGet() method (Ofcourse the request constructed would have a URL and request parameters, but how to construct such dummy request)?
and also want no dependency of junit on Apache(should run independent of it).
Look into MockHTTPServletRequest(), I think its going to work. Here is the link which you can read.