Hi Florent,
Florent André schrieb:
About this article : http://lenya.apache.org/docu20/tutorials/tests.html
In the heading "Adding tests to modules" it's seems to have an error :
thanks for the hint! I changed the code, it will be live after the next
website update.
-- Andreas
In the source code, this methods :
DocumentFactory factory =
DocumentUtil.createDocumentIdentityMap(getManager(), session);
Publication publication = PublicationUtil.getPublication(getManager(),
"test");
Seems to be no longer in the API, this methods :
DocumentFactory factory = DocumentUtil.createDocumentFactory(this.manager,
session);
Publication pub = factory.getPublication(pubname); (or from api :
DocumentUtil.getPublication(org.apache.avalon.framework.service.ServiceManager
manager, org.apache.cocoon.environment.Request request) )
replace it.
That's right ?
Have a good day
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]