I should have also mentioned that for examples of unit testing actions you
should look in src/test/org/apache/cocoon/acting. You will see unit tests
for RequestParamAction and ResourceExsitsAction.  As an aside, I have to
wonder where the unit tests for all the other actions are?

Ralph

-----Original Message-----
From: Ralph Goers
To: 'Damon van Opdorp '; '[EMAIL PROTECTED] '
Sent: 12/10/2003 7:25 PM
Subject: RE: Unit Testing Actions

In your source distribution look in src/test/org/apache/cocoon. After a
build the classes are in build/cocoon-2.1.x/cocoon-testcase.jar.  You
will also want to grab the source and jar for ExcaliburTestcase. It has
moved around between excalibur-testcase and excalibur-component. I'm not
sure where it was in 2.1.1 as I never downloaded that.  FYI,
exalibur-testcase is broken in 2.1.3.  I have a patched version that
works but I'm not sure how to get ahold of the "official" version.

Ralph

-----Original Message-----
From: Damon van Opdorp
To: [EMAIL PROTECTED]
Sent: 12/10/2003 5:58 PM
Subject: RE: Unit Testing Actions

Hi All,

I'm having trouble finding AbstractCompositeTestCase.  I can google a
couple of references to it, and it sounds like it does some usefull mock
object donkeywork, but I can't find it in my version of Cocoon, which is
2.1.1.

Anyone know of the replacement to AbstractCompositeTestCase?  Should I
have build my cocoon with difference options?

Cheers,

Damon

On Thu, 2003-12-11 at 13:57, Ralph Goers wrote:
> Use AbstractCompositeTestCase. I have learned more about Avalon by
building
> unit tests using this than in writing the components themselves.
> 
> > -----Original Message-----
> > From: Damon van Opdorp [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, December 10, 2003 3:50 PM
> > To: [EMAIL PROTECTED]
> > Subject: Unit Testing Actions
> > 
> > 
> > Hi,
> > 
> > Does anyone have any tips for unit testing actions?  Are 
> > there any JUnit
> > extensions for cocoon?  Any other suggestions?
> > 
> > Thanks,
> > 
> > Damon van Opdorp
> > 
> > 
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to