Steve K wrote:
Hello everyone --
I am currently building a Cocoon application and so far I've extended the ExcaliburTestCase class to write my JUnit tests for the components I'm creating. However, I'm now at the point where I am starting to write pipelines that generate XML based on the database manipulations the previously mentioned components perform, and it appears that there is no easy way to test these. For example, my ideal test code might look like:
myCustomComponent.doSomething(); Document actualXml = cocoon.process("/path/to/my/pipeline"); Diff diff = new Diff(actualXml, expectedXml); assertTrue("pipeline test", diff.identical());
Have you seen anteater tests in the cocoon-2.1\src\test\anteater? It can do some of that, and may be all of that you want, I don't know all the capabilities of anteater.
Vadim