• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Is JUnit for j2ee ??

 
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
 
Bartender
Posts: 10336
Hibernate Eclipse IDE 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 ]
 
author
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.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic