Hi,

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 : 

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to