jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.com>
Subject RE: Testing Turbine Actions and Screens vs Web Pages
Date Thu, 07 Nov 2002 20:44:58 GMT
Hi Eric,

I don't have much experience with Turbine. Cactus let you get inside the
container and get container objects. Now if you're testing a layer above
that, like Turbine (or Struts for that matter), you have 2 options I
- use mock objects to create Turbine objects
- let the Turbine application execute, thus creating the objects for
you. That solution is closer to the Cactus spirit as it lets you perform
integration unit tests. However, this requires knowledge about Turbine
which I don't have. The spirit is the same as the one used by the
StrutsTestCase case extension to Cactus (StrutsTestCase actually
implements both strategies).

I know that Jetspeed is using Cactus for some of their unit tests. Dunno
if it may help. 

In any case, if you come up with some utility classes that helps unit
testing Turbine with Cactus, I will be happy to host them as an
extension inside the Cactus project.


> -----Original Message-----
> From: EPugh@upstate.com [mailto:EPugh@upstate.com]
> Sent: 07 November 2002 19:04
> To: cactus-user@jakarta.apache.org
> Subject: Testing Turbine Actions and Screens vs Web Pages
> Hi all,
> I want to test some of my various Turbine pages.  I think I understand
> that
> I want to extend the Servlet test stuff to test my individual actions
> other code that relies on the Turbine framework.
> However, if I want to test the pages produced by Turbine, what would I
> use?
> I want to validate that if  I make choice A, I get result A.  Make
> B
> on my dropdown, get Result B.
> Does anyone have any sample code and would this be better posted to
> Turbine-user list?
> Eric Pugh

To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>

View raw message