Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unit Testing for Java and JSP

 
Viji be
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone suggest me the approach for testing the JSP,Java classes using UNIT testing?

Please do give me some examples for the same.
 
Gian Franco
blacksmith
Ranch Hand
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Viji,

You should try to use HttpUnit. It works perfectly for
me, better than HtmlUnit for what I need it.

Try to get hold of the book "Junit Recipes" it gives
very good hints for unit testing for a broad range of
scenarios.

hth, cheers,

Gian
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put as few logic into JSP's as possible. Delegate to POJOs or custom tags.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic