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 Nick Chunyu Fu <nf...@wc-group.com> on 2004/07/19 21:57:06 UTC

RE: Use Cactus to test Velocity code?

Hi, Vincent:

Is it possible to test Velocity code thru Cactus?

Actually we are looking for a tool to do integration test.

Thanks,

Nick

RE: Use Cactus to test Velocity code?

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Nick,

Cactus will let you test any code that uses the following APIs:
- Servlets,
- JSPs,
- Filters,
- EJBs

What it means is that Cactus is able to provide container objects related to
hose APIs (HttpServletRequest, etc). For the EJBs, it's a bit different.
Cactus does not really support unit testing EJBs. However, as EJBs are
usually called from a Servlet/JSP/Filter context, Cactus can help you in
accessing EJB local interfaces for example.

Now for Velocity, Cactus won't provide any Velocity object to you. However,
if you're using Velocity with a Servlet engine, Cactus can certainly help.

-Vincent

> -----Original Message-----
> From: Nick Chunyu Fu [mailto:nfu@wc-group.com]
> Sent: lundi 19 juillet 2004 21:57
> To: Cactus Users List
> Subject: RE: Use Cactus to test Velocity code?
> 
> Hi, Vincent:
> 
> Is it possible to test Velocity code thru Cactus?
> 
> Actually we are looking for a tool to do integration test.
> 
> Thanks,
> 
> Nick