You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by radha devi <ka...@yahoo.com> on 2004/07/20 06:22:24 UTC

what are the different possibilities of calling a servlet class

Hi

To test a servlet, do I always need to create an instance of the servlet or is there any other way to call the servlet. 
 
Is there way to call the servlet class through URL?
 
Thanks!
Radha

		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

RE: what are the different possibilities of calling a servlet class

Posted by Vincent Massol <vm...@pivolis.com>.
> -----Original Message-----
> From: radha devi [mailto:kangabamradha@yahoo.com]
> Sent: mardi 20 juillet 2004 06:22
> To: Cactus Users List
> Subject: what are the different possibilities of calling a servlet class
> 
> Hi
> 
> To test a servlet, do I always need to create an instance of the servlet
> or is there any other way to call the servlet.
> 
> Is there way to call the servlet class through URL?

No! Cactus is about *unit testing* not about functional testing. We're not
doing black box testing but white box testing. 

Think about how you unit test any POJO. You instantiate the class and then
call the method do test. Same for Cactus.

If you wish to write functional tests, do not use Cactus. You'll find better
tools elsewhere.

-Vincent