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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to