Testing Servlet Useing Junit
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ramanand_bulusu
Posted On:   Wednesday, December 27, 2006 05:12 AM


plz give me a sample code to test a Servlet Useing JUnit.I am knew to Junit and i a not geting any advantage to write a JUnit testcases than log4j.plz explain with a brief details.

Re: Testing Servlet Useing Junit

Posted By:   Christopher_Koenigsberg  
Posted On:   Sunday, January 7, 2007 12:43 PM

I think you need more setup to test a servlet, beyond just junit itself. You need something like "cactus", "httpunit", etc. that are built on top of junit but provide mock objects or stubs for the HttpServletRequest, Response, etc.
About | Sitemap | Contact