Unit testing a Java Servlet -
i know best way unit testing of servlet.
testing internal methods not problem long don't refer servlet context, testing doget/dopost methods internal method refer context or make use of session parameters?
is there way using classical tools such junit, or preferrably testng? did need embed tomcat server or that?
try httpunit, although end writing automated tests more 'integration tests' (of module) 'unit tests' (of single class).
Comments
Post a Comment