Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is JUnit for j2ee ??

 
mudassir shahab
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi dudes...

can we use JUnit testing for j2ee applications..??..if yes ..how ??

is there any other tool or framework to unit test j2ee based applications ..what if i want to test my servlet or jsp..

thanks
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

can we use JUnit testing for j2ee applications..??..

Yes.

if yes ..how ??

Just as you would any normal class. The documentation is the best place to find out how.

is there any other tool or framework to unit test j2ee based applications ..what if i want to test my servlet or jsp

There are. You might want to look at the server based vesrion of JUnit, called Cactus, or HTTPUnit which is specifically for web apps.
[ March 29, 2005: Message edited by: Paul Sturrock ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should also get a copy of J.B. Rainsberger's JUnit Recipes. It's the bible for anyone wanting to put his J2EE components under automated tests using JUnit and its extensions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic