Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 20314 invoked from network); 29 Sep 2003 12:25:17 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 29 Sep 2003 12:25:17 -0000 Received: (qmail 42345 invoked by uid 500); 29 Sep 2003 12:25:09 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 42299 invoked by uid 500); 29 Sep 2003 12:25:09 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 42285 invoked from network); 29 Sep 2003 12:25:09 -0000 Received: from unknown (HELO out006.verizon.net) (206.46.170.106) by daedalus.apache.org with SMTP; 29 Sep 2003 12:25:09 -0000 Received: from verizon.net ([138.88.91.39]) by out006.verizon.net (InterMail vM.5.01.05.33 201-253-122-126-133-20030313) with ESMTP id <20030929122509.LTGP5302.out006.verizon.net@verizon.net> for ; Mon, 29 Sep 2003 07:25:09 -0500 Message-ID: <3F7824A4.2030309@verizon.net> Date: Mon, 29 Sep 2003 08:25:08 -0400 From: Vadim Gritsenko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030916 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Unit testing pipelines? References: <2A3CDA39-EF43-11D7-AD24-000393D2CB02@apache.org> <3F773DA9.7000503@virbus.de> <3F7758E3.8080109@virbus.de> <3F777DEC.3020701@mm.st> <3F77C91E.4020309@upaya.co.uk> In-Reply-To: <3F77C91E.4020309@upaya.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out006.verizon.net from [138.88.91.39] at Mon, 29 Sep 2003 07:25:09 -0500 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Upayavira wrote: > 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