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

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -