Grzegorz Kossakowski wrote:
[EMAIL PROTECTED] 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        [EMAIL PROTECTED]
_________________________________________________________________________

Reply via email to