You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Andrew Stevens <at...@hotmail.com> on 2007/09/03 15:48:36 UTC

Unit testing readers

What's the easiest way to unit test a reader (and associated service 
components & configuration)?  I've been using SitemapComponentTestCase 
no problems with other components types (actions, transformers, selectors) 
but it doesn't appear to contain a read() method.


Andrew.
-- 
http://pseudoq.sourceforge.net/  Open source java Sudoku application.

_________________________________________________________________
The next generation of MSN Hotmail has arrived - Windows Live Hotmail
http://www.newhotmail.co.uk

RE: Unit testing readers

Posted by Andrew Stevens <at...@hotmail.com>.
> Date: Mon, 3 Sep 2007 16:25:37 +0200
> From: gkossakowski@apache.org
>
> Andrew Stevens pisze:
>> What's the easiest way to unit test a reader (and associated service
>> components & configuration)? I've been using SitemapComponentTestCase
>> no problems with other components types (actions, transformers, selectors)
>> but it doesn't appear to contain a read() method.
>
> Is your reader a Spring bean? Do you develop with C2.2 or 2.1?

Sorry - forgot to say.  This is for 2.1.X, so it's Avalon components not Spring beans.


Andrew.
-- 
http://pseudoq.sourceforge.net/  Open source java Sudoku application

_________________________________________________________________
Celeb spotting – Play CelebMashup and win cool prizes
https://www.celebmashup.com

Re: Unit testing readers

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Andrew Stevens pisze:
> What's the easiest way to unit test a reader (and associated service 
> components & configuration)?  I've been using SitemapComponentTestCase 
> no problems with other components types (actions, transformers, selectors) 
> but it doesn't appear to contain a read() method.

Is your reader a Spring bean? Do you develop with C2.2 or 2.1?

-- 
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/