How to run the servlet test by using HttpUnit servlet runner? Problems in Starting up with ServletUnit?
问题 I was planning to unit test my Servlet through ServletUnit and ran across some problems : - As a starting point, we are supposed to create a ServletRunner object. One of the constructors expects File object with web.xml file. I provide the full path of my web.xml file but somehow it ignores the path provided and searches at the top level folder. The code-snippet and error message is below: Code Snippet ServletRunner sr = new ServletRunner(new File("* C:/eclipse-workspaces/pocs/lms-csd/src