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:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
-- 
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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to