• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to unit test web application  RSS feed

 
raj malhotra
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi can any one explain how to do unit testing for a web application.Any example code or link will be helpful.Thanks in advance.And please tell me what we can test with junit eg- jsp,servlet,pojo,ejb etc in a web application
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can unit test pretty much any Java code, whether it's for a web application or a pure back-end system. You just instantiate the objects you want to test in your JUnit test method and go about asserting stuff.

What I suspect you're looking for, though, is functional testing of a web application. For that, you should look for tools such as JWebUnit, Watir and Selenium.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!