File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to unit test web application

 
raj malhotra
Ranch Hand
Posts: 288
  • 0
  • 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
  • 0
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic