cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Chicchiriccò <>
Subject Re: Unit testing
Date Wed, 13 Feb 2013 08:45:24 GMT
On 13/02/2013 02:36, Mansour Al Akeel wrote:
> I am looking to write few simple test cases for pipelines we are working on.
> Mainly I need to request a resource  like
> http://localhost:8080/myBlock/doc/{id}.xml and compare it with the
> existing expected xml document. For comparison, I can use xmlUnit.
> However to initialize a block from a junit test class, some work need
> to be done. I am not sure, if there is an example showing how to
> achieve this.
> My pipelines are defined in sitemap.xmap and would like to use this.

Please take a look at "it" profile in cocoon-sample-webapp's pom.xml [1] 
that makes usage of cocoon-it-fw [2].



Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message