You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Charlene Mitchell <ch...@yahoo.co.uk> on 2002/12/10 09:40:17 UTC

Unit Test Cocoon

Hi,

Does anyone successfully use JUnit and/or Cactus to
Unit Test Cocoon actions/generators etc ?

I have my own generators and actions but I'm not sure
how to call them from JUnit, how to pass in what they
would normally expect to receive.
e.g. an action receives
  public Map act(Redirector redirector, SourceResolver
resolver, Map objectModel, String source, Parameters
params)

Thanks (hopefully) in advance for any tips/info

Charlene

PS - the CVS test cases didn't shed any extra light

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Re: Unit Test Cocoon

Posted by Charlene Mitchell <ch...@yahoo.co.uk>.
Hi,

Could you possibly send me some code snippets to get
me started?

I'm looking for the Excalibur test components but
haven't found them yet.  :-(
Still lokking mind!

Charlene

 --- Kevin O'Neill <ke...@rocketred.com.au> wrote: >
On Tue, 2002-12-10 at 19:40, Charlene Mitchell
> wrote:
> > Hi,
> > 
> > Does anyone successfully use JUnit and/or Cactus
> to
> > Unit Test Cocoon actions/generators etc ?
> > 
> > I have my own generators and actions but I'm not
> sure
> > how to call them from JUnit, how to pass in what
> they
> > would normally expect to receive.
> > e.g. an action receives
> >   public Map act(Redirector redirector,
> SourceResolver
> > resolver, Map objectModel, String source,
> Parameters
> > params)
> 
> Have a look at the Excalubur test components. I'm
> using them as the
> basis for my action and generator tests.
> 
> > Thanks (hopefully) in advance for any tips/info
> > 
> > Charlene
> > 
> > PS - the CVS test cases didn't shed any extra
> light
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Everything you'll ever need on one web page
> > from News and Sport to Email and Music Charts
> > http://uk.my.yahoo.com
> > 
> >
>
---------------------------------------------------------------------
> > Please check that your question  has not already
> been answered in the
> > FAQ before posting.    
> <http://xml.apache.org/cocoon/faq/index.html>
> > 
> > To unsubscribe, e-mail:    
> <co...@xml.apache.org>
> > For additional commands, e-mail:  
> <co...@xml.apache.org>
> -- 
> If you don't test then your code is only a
> collection of bugs which 
> apparently behave like a working program. 
> 
> Website: http://www.rocketred.com.au/blogs/kevin/
> 
> 
>
---------------------------------------------------------------------
> Please check that your question  has not already
> been answered in the
> FAQ before posting.    
> <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:    
> <co...@xml.apache.org>
> For additional commands, e-mail:  
> <co...@xml.apache.org>
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Re: Unit Test Cocoon

Posted by Kevin O'Neill <ke...@rocketred.com.au>.
On Tue, 2002-12-10 at 19:40, Charlene Mitchell wrote:
> Hi,
> 
> Does anyone successfully use JUnit and/or Cactus to
> Unit Test Cocoon actions/generators etc ?
> 
> I have my own generators and actions but I'm not sure
> how to call them from JUnit, how to pass in what they
> would normally expect to receive.
> e.g. an action receives
>   public Map act(Redirector redirector, SourceResolver
> resolver, Map objectModel, String source, Parameters
> params)

Have a look at the Excalubur test components. I'm using them as the
basis for my action and generator tests.

> Thanks (hopefully) in advance for any tips/info
> 
> Charlene
> 
> PS - the CVS test cases didn't shed any extra light
> 
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
-- 
If you don't test then your code is only a collection of bugs which 
apparently behave like a working program. 

Website: http://www.rocketred.com.au/blogs/kevin/


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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