Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 83593 invoked from network); 31 Mar 2010 01:31:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Mar 2010 01:31:34 -0000 Received: (qmail 92438 invoked by uid 500); 31 Mar 2010 01:31:34 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 92415 invoked by uid 500); 31 Mar 2010 01:31:34 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 92407 invoked by uid 99); 31 Mar 2010 01:31:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Mar 2010 01:31:34 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 209.85.210.180 as permitted sender) Received: from [209.85.210.180] (HELO mail-yx0-f180.google.com) (209.85.210.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Mar 2010 01:31:26 +0000 Received: by yxe10 with SMTP id 10so5640481yxe.29 for ; Tue, 30 Mar 2010 18:31:05 -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 :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=vhWBrhkFGnkTEdKx1sbkKSearTUYM2NPmIsQ1bQXlIY=; b=dUvEpU48U5Pjwp30zIPBR/fxiG1gyV+ifE8gFFg9HmLDyqvB8pqLwAYJC9s9dMZulV EmFAObQPzrKSEkvGaxPz19nMEM5gQa2EMmoVzijInaRkRyO8T87nDUjHg8ZrhvPeN/uA EvhF7lGULPiGXwuxCXpvJFQIePrdsrLE54bv8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=Ite1WevF+V7WtQfPqLmBiAMPpiDNWq9KvMgOCwJj+KK+CH3EPJFftWMiqxIj9/7MgW CqCmFnfHrRjkjIRfAO5wlaD1B+purNM4j8O/C5ng4ywbsavJk5u0biYO2Y59lXSK+6As J5cpPthqHfxhMJNFw79YKYLOHXGo6VJ/pMNms= Received: by 10.150.48.21 with SMTP id v21mr7202444ybv.323.1269999065571; Tue, 30 Mar 2010 18:31:05 -0700 (PDT) Received: from [192.168.0.158] ([125.34.5.18]) by mx.google.com with ESMTPS id cm22sm6223302ibb.11.2010.03.30.18.31.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 30 Mar 2010 18:31:04 -0700 (PDT) Message-ID: <4BB2A5D4.60800@gmail.com> Date: Wed, 31 Mar 2010 09:31:00 +0800 From: Willem Jiang User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: Possible to have a unit test in camel-core that uses spring? References: <4BB24E4D.4060704@spudsoft.co.uk> <704b3d9d1003301224k6adec6e0m3a2b7a16e4cf4342@mail.gmail.com> In-Reply-To: <704b3d9d1003301224k6adec6e0m3a2b7a16e4cf4342@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Just as Stan said , you can put the test into camel-spring. If you go through the camel-spring test, special the processor package, you will find there are lots of test which are based on the camel-core test and are doing the regression work for spring configuration. Willem Stan Lewis wrote: > What about a separate test in camel-spring to test this out? So you > can have your unit test in camel-core that directly tests out your > changes and then a second more elaborate test perhaps that shows the > spring configuration. > > On Tue, Mar 30, 2010 at 3:17 PM, Jim Talbut wrote: >> Hi, >> >> I'm working on this: https://issues.apache.org/activemq/browse/CAMEL-2563 >> and I want to have a unit test for it that tests that I can configure the >> tracer using spring, but I don't think this is possible. >> Am I right? >> >> All the tests I can find using spring reference one or more of camel-test or >> camel-spring, which I don't think I can access from camel-core. >> I could demonstrate the configuration of the camel-context using normal >> spring, but I don't think that proves very much. >> >> Should I just forget spring tests? >> >> Thanks >> >> Jim >> >