Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2842E2AC5 for ; Thu, 5 May 2011 13:27:21 +0000 (UTC) Received: (qmail 83534 invoked by uid 500); 5 May 2011 13:27:20 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 83504 invoked by uid 500); 5 May 2011 13:27:20 -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 83496 invoked by uid 99); 5 May 2011 13:27:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 13:27:20 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of davidkarlsen@gmail.com designates 209.85.161.173 as permitted sender) Received: from [209.85.161.173] (HELO mail-gx0-f173.google.com) (209.85.161.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 13:27:16 +0000 Received: by gxk26 with SMTP id 26so880873gxk.32 for ; Thu, 05 May 2011 06:26:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=2Tg0uvpiY0/RYjP6HGuyY48w1ZtNweUuD+pnCRvWOA8=; b=mCCMhMXOemgWzYQ9ge/7ilmKRmtkrnK5zRaJxk8wnfzrPPU0HKgDNiSxLTLDGz0J9Q /C2Dl9vskMmF5LKNWX5GYRq8/sV1NAv03vQHulctIt9pX73IGCvYU/yhosZEyt6RPkl3 xI4Y7dUDVzD/QZwI8bqu9JkjtgKW/8DXJNnrk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Ub2liuI8p/oXoKflICv59rkCTEcv5x5UEuA4CNUScOOGyhCgFpuIskgnJmOhEmoQ3M 711O1gYLB+LvPEeM8gZu53G226LgxbXqu50UbC7deyOL7AnmdpeG/5y49qBFWYe3P3Q9 1VRX8Vp5gK8Ey9w+/6HnFf1OWcxzLfEnCW/Uc= MIME-Version: 1.0 Received: by 10.101.131.4 with SMTP id i4mr1653501ann.36.1304602015002; Thu, 05 May 2011 06:26:55 -0700 (PDT) Received: by 10.100.57.12 with HTTP; Thu, 5 May 2011 06:26:54 -0700 (PDT) In-Reply-To: <4DC26A3F.2060705@sopera.com> References: <1304585813761-4372286.post@n5.nabble.com> <4DC26A3F.2060705@sopera.com> Date: Thu, 5 May 2011 15:26:54 +0200 Message-ID: Subject: Re: Conceptual 'correctness' of using Camel Unit Tests From: David Karlsen To: users@camel.apache.org Content-Type: multipart/alternative; boundary=001636c92a3fad718804a2875305 --001636c92a3fad718804a2875305 Content-Type: text/plain; charset=ISO-8859-1 Can they be run in parallel - or can modules be run in parallel - that could speed things up. 2011/5/5 Christian Schneider > I think it is only named wrong. The camel test support is written to > support integration > tests not unit tests. > > I think it is a very good idea to write real unit tests and integration > tests. The unit tests are extremly fast and give you a first security. Still > the integration tests are very important as many errors can only be spotted > this way. > > I think at the moment camel uses a quite pragmatic test concept. Each > component comes with unit tests and integration tests. As long as the tests > are fast I think there is no big problem with that. > > All in all the problem is though that a whole camel build takes aroung 4 > hours. So we might really be able to do that better. A problem here is > though the big number of components we have. > > Christian > > > Am 05.05.2011 10:56, schrieb Gert Villemos: > > Some would argue that a unit test per definition tests the unit completely >> standalone. Using JUnit this is easy, especially when combined with >> Spring, >> i.e. you can isolate your bean and test each method directly. >> >> The Camel Junit on the other hand test the unit as part of a camle route. >> Even if the route is very simple such as >> >> >> >> >> >> >> >> Still, It's testing my bean in a context that is more than just using the >> bean methods. >> >> The Camel in Action book 'only' list on benefit of using Camel Junit >> tests, >> namely simplification of the unit tests. I would like to hear what the >> rest >> of you do / think. >> >> - Do you use only Camel Junit tests using routes? >> >> - Do you use 'normal' method oriented JUnit tests for low level tests of >> individual methods combined with Camel Unit tests for >> 'component/application' level testing? >> >> - Do you see a conceptual problem in unit testing using Camel JUnit? >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/Conceptual-correctness-of-using-Camel-Unit-Tests-tp4372286p4372286.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> > > > -- > Christian Schneider > http://www.liquid-reality.de > > CXF and Camel Architect > SOPERA - The Application Integration Division of Talend > http://www.talend.com > > -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen --001636c92a3fad718804a2875305--