Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 26721 invoked from network); 8 Sep 2008 19:15:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Sep 2008 19:15:31 -0000 Received: (qmail 24540 invoked by uid 500); 8 Sep 2008 19:15:29 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 24523 invoked by uid 500); 8 Sep 2008 19:15:29 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 24512 invoked by uid 99); 8 Sep 2008 19:15:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2008 12:15:29 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.strachan@gmail.com designates 64.233.184.224 as permitted sender) Received: from [64.233.184.224] (HELO wr-out-0506.google.com) (64.233.184.224) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2008 19:14:30 +0000 Received: by wr-out-0506.google.com with SMTP id 50so1760040wri.2 for ; Mon, 08 Sep 2008 12:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=kwMy/IltnVxc9q/58KPZewTKf2J/TY169nNYGLq67wA=; b=tv7iavCS7x5iHf58C4/ghYo0rHbCowTJPfWnzsrJqsXoV+KY2oMgq9zcTIlt4/7u4z QCiw7cdoAokDnZd9K6RCJNR9M9J/IYnP+u7FOIX1uDyGEqGnBY5XpkcFh3e+80o9PNSe AbyQCei7McojYvWx80uJPBximrpO2jPBqslN0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=jBg0CBE2RPiL6fEtFEQGVfeYwAO1adECRwPu+qlJ7Mh/41AT8w22XFlSLwXqHRUcKJ oW689BR3AIS9hMcFQNcCDfNp9ab2pFQI7PSz4kx8gRtdWJdc/84Q8l1dItElpwEYfFeH wh5qBkOoowr6phbd7tyVLMBKwYtyuKA7196fc= Received: by 10.90.81.19 with SMTP id e19mr19576341agb.119.1220901300676; Mon, 08 Sep 2008 12:15:00 -0700 (PDT) Received: by 10.90.117.12 with HTTP; Mon, 8 Sep 2008 12:15:00 -0700 (PDT) Message-ID: Date: Mon, 8 Sep 2008 20:15:00 +0100 From: "James Strachan" To: camel-dev@activemq.apache.org Subject: Re: A real camel-test component for Camel 2.0 In-Reply-To: <48C38469.9030902@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4C1FB9C00D24A140906239533638C4D20537039F@EXVS04.exserver.dk> <48C38469.9030902@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 2008/9/7 Willem Jiang : > Hi Claus, > > +1 for creating a real camel-test component for Camel 2.0. > > If we create a real camel-test component with current Camel modules layout, > it will introduce the cycle dependency into the camel-core > camel-test <--> camel-core > Maybe we could take out the camel-api for the camel-core to resolve this > cycle dependency. > camel-api <-- camel-test <-- camel-core > > And there are lots of test cases in the org.apache.camel.spring.processor > package of the camel-spring-test.jar which extents the test classes in the > camel-core-test.jar, it is a challenge for us to support this kind of code > reuseability in the new camel-test component. Yeah - to do a kinda regression test, I started deriving the spring tests from the core tests but using spring rather than the Java DSL - though I do find all that code a tad smelly :) Apart from those tests, the camel-spring module should ideally just use the spring-test stuff; so it doesn't really need any code from camel-core-test or anything. If we did introduce a camel-test library, we'd not have to use it in camel-core or camel-spring I don't think; we could always move tests outside those 2 modules. Plus there's nothing stopping us having separate modules to test various things in the build. -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com