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 chad r <ch...@yahoo.com> on 2002/03/28 16:13:30 UTC

is this true?

 
  Hi,
Is Cactus only for testing the cookie and session objects? Can't we test some code for example some 
database code in the servlet? Is it possible with the present cactus structure to invoke database and get result? Do we need to make any changes ?
Thanks
chad




---------------------------------
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�

RE: is this true?

Posted by Vincent Massol <vm...@octo.com>.
Chad,

Please have a look as the provided sample application (in sample/
directory where you unzipped the Cactus distribution). You'll see the
kind of tests you can perform with Cactus.

WRT database access and any other API, Cactus is completely transparent,
meaning there is no interception of any sort (your database will get
called). The only interception Cactus does (and which is a transparent
interception - if you exclude possible bugs :-)) is with the Servlet and
Filter APIs.

In other words, with a Cactus test you decide of your entry point in
your application to test and it goes all the way at the back (till the
database or even calling other remote resources such as some CICS
transactions on a mainframe or other partners, etc).

If you wish not to go all the way, you can combine a mockobjects
strategy with Cactus.

Hope it helps,
-Vincent

> -----Original Message-----
> From: chad r [mailto:chad123usus@yahoo.com]
> Sent: 28 March 2002 15:14
> To: cactus-user@jakarta.apache.org
> Subject: is this true?
> 
> 
> 
>   Hi,
> Is Cactus only for testing the cookie and session objects? Can't we
test
> some code for example some
> database code in the servlet? Is it possible with the present cactus
> structure to invoke database and get result? Do we need to make any
> changes ?
> Thanks
> chad
> 
> 
> 
> 
> ---------------------------------
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy AwardsR



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>