cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinh...@apache.org>
Subject Re: svn commit: r616536 - in /cocoon/whiteboard/micro/misc: cocoon-micro-it-block/src/main/java/org/apache/cocoon/micro/it/ cocoon-micro-it-block/src/main/resources/COB-INF/ cocoon-micro-it-block/src/main/resources/META-INF/cocoon/spring/ cocoon-webapp/src...
Date Tue, 29 Jan 2008 22:23:05 GMT
Grzegorz Kossakowski wrote:
> reinhard@apache.org pisze:
>> Author: reinhard Date: Tue Jan 29 14:07:32 2008 New Revision: 616536
>> 
>> URL: http://svn.apache.org/viewvc?rev=616536&view=rev Log: add test for
>> accessing the object model from within a generator and redirection
>> (redirecting to a servlet source doesn't work ATM)
> 
> Which object model you want to test here?

TBH, from an integration test perspective, I don't care which one. I want to 
test if the object model can be accessed at all from within a generator. I want 
to make sure that the OM is still available after doing refactorings, because I 
guess that the old one will be removed sooner or later.


>> + +public class RequestParametersGenerator extends AbstractGenerator { + +
>> public void generate() throws IOException, SAXException,
>> ProcessingException { +        Request request =
>> ObjectModelHelper.getRequest(this.objectModel); +
> 
> Modern way to access request object is PipelineInfoProvider bean.

ok

-- 
Reinhard Pötz                            Managing Director, {Indoqa} GmbH
                           http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member, PMC Chair        reinhard@apache.org
_________________________________________________________________________

Mime
View raw message