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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -