Unit testing

Mansour Al Akeel <[email protected]>
Newsgroups gmane.text.xml.cocoon.user
Message-ID <CAFvvX=b04PVFkHD1aX6q9v64CJRYEoE2D85PcNZuJEwd_TntEw@mail.gmail.com>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.