• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jsp Testing  RSS feed

 
priya shankar
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
can anybody explain me Huv to test Jsp ,Servlets and EJB using JUnit...If any related Urls Pls let me Know..
thankx
priya
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, the general strategy is to make them so simple that they don't need much testing - let them delegate most of the work to plain simple java classes and test those extensively.
Second, you will find some material on those issues on both the articels and extensions sections at www.junit.org.
You can also take a look at http://c2.com/cgi/wiki?ServletTesting - using the FindPage might give you other interesting pages.
And last but not least, you could get yourself a copy of http://www.amazon.com/exec/obidos/tg/detail/-/1558608680/
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One way is to use Cactus to test server side code. Cactus is an extension of JUnit.
Why can't you just use JUnit?
http://jakarta.apache.org/cactus/writing/howto_ejb.html
this is for EJB's but the concept applies for all serverside code.
[ June 08, 2003: Message edited by: Andres Gonzalez ]
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In addition to testing all the separate Java classes, you can also test JSP custom tags with TagUnit or Cactus.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!