aspose file tools*
The moose likes Testing and the fly likes Is JUnit for j2ee ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Is JUnit for j2ee ?? " Watch "Is JUnit for j2ee ?? " New topic
Author

Is JUnit for j2ee ??

mudassir shahab
Ranch Hand

Joined: Oct 13, 2003
Posts: 54
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

Joined: Apr 14, 2004
Posts: 10336


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 ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
Consider Paul's rocket mass heater.
 
subject: Is JUnit for j2ee ??