You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mansour Al Akeel <ma...@gmail.com> on 2013/02/13 02:36:27 UTC
Unit testing
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.
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Unit testing
Posted by Francesco Chicchiriccò <il...@apache.org>.
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].
Regards.
[1]
https://svn.apache.org/repos/asf/cocoon/cocoon3/trunk/cocoon-sample-webapp/pom.xml
[2] http://cocoon.apache.org/2.2/maven-plugins/it-fw/1.0/
--
Francesco Chicchiriccò
ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org