Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DC205200C1B for ; Tue, 14 Feb 2017 19:28:41 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DAA42160B5F; Tue, 14 Feb 2017 18:28:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 30D62160B45 for ; Tue, 14 Feb 2017 19:28:41 +0100 (CET) Received: (qmail 91760 invoked by uid 500); 14 Feb 2017 18:28:40 -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 91748 invoked by uid 99); 14 Feb 2017 18:28:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2017 18:28:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 56109C04B3 for ; Tue, 14 Feb 2017 18:28:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.794 X-Spam-Level: *** X-Spam-Status: No, score=3.794 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=techgap-it.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id GllqtVK2Qo18 for ; Tue, 14 Feb 2017 18:28:35 +0000 (UTC) Received: from mail-ot0-f178.google.com (mail-ot0-f178.google.com [74.125.82.178]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B56355F659 for ; Tue, 14 Feb 2017 18:28:34 +0000 (UTC) Received: by mail-ot0-f178.google.com with SMTP id 32so100818466oth.3 for ; Tue, 14 Feb 2017 10:28:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=techgap-it.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=YsduTZIE5Ub/TSBvBjOgcEnTh0qxmQrVuYWeqKxj+DA=; b=P3JQJsUdldj+JjBgB76DUvuNd8hRweRUMJtJasiX+SB7xaUHCn0e62tRzDHj86/a9J r9YWsmq/VB189Wr4L2sC+UxavgdX0TLfyslVibqjD6KcBp5+dun713MHB6cpr7bp5N1F b3Y1wMszQt+XGJhOBriXSoAaRq2n/lFATZ5pqNdXH3A2JgU2mzy6zcmr6uAsJfl3tX3b nbqCqqVbAR5YczrH2pyBrg4T7PdPlniz65i86+wWVG6V2w21FbHknTbBeURxxRCwRN6H 4vmq0xFLk8rSF5tCQ2+kwL7RGPKdGmOHDFhWEed+JAe9WchMidB5m/JHq35ZNIU+MKHL 11fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=YsduTZIE5Ub/TSBvBjOgcEnTh0qxmQrVuYWeqKxj+DA=; b=SHPmZjWtJFzXCdlYtUp1K5jPnMOTLBZmic+jiHFjK2zlGbf9AQFU3WNWas0gwcTwMO fjlaUQsV9Xhp3aPsRWMX4ufNovliHKuTBWcpZyRA8rJUs7+X0sIM78acMwrxeVHthTIo aB7a2sFIWB01eHijWqVG0bJy94vke89+yGJE9mODZRL76uUsc8emKqLHM3K4sbtu2Sl0 RSPYrcOAeMGv+XPlHQp072rbIpLwmkyVpDgXDtm8oTE0NLq/KWyrsDosUXtPNDo/v6oh IQgiZQEnc/jxwpqfleeu8+87CPkALHnE+gmNAar2CLzxauH9eQKhK00sfbTETDpheXcv 9g4Q== X-Gm-Message-State: AMke39nOysbU8izK5mbFdPDALdFcoDaY0jXxZvi86ZOCxy7XfGyTGLhl4LV9+4wXLl36mXkm0HwvLlFuS1IlQQ== X-Received: by 10.157.9.69 with SMTP id 63mr19239467otp.152.1487096905030; Tue, 14 Feb 2017 10:28:25 -0800 (PST) MIME-Version: 1.0 References: <1487092770675-5793886.post@n5.nabble.com> In-Reply-To: <1487092770675-5793886.post@n5.nabble.com> From: Giovanni Condello Date: Tue, 14 Feb 2017 18:28:14 +0000 Message-ID: Subject: Re: unit testing with DSL using 2.17.0.redhat-630187 To: users@camel.apache.org Content-Type: multipart/alternative; boundary=94eb2c04f048c56f4d054881ba46 archived-at: Tue, 14 Feb 2017 18:28:42 -0000 --94eb2c04f048c56f4d054881ba46 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, We are using camel and spring boot with great success (bugs aside =F0=9F=98= =85). Take a look at this sample code: https://gitlab.com/g.condello/camel-split-join-issue And ignore the fact that the route/test doesn't work (due to a bug in camel for which I've already filed a ticket). That should be enough to get you started. Btw the sample uses the latest camel and spring but we use basically the same code with camel 2.17. Cheers Giovanni Il mar 14 feb 2017, 19:23 hvan ha scritto: > It cannot find the application context. Everything I can find says it wor= ks > for vanilla java or spring XML files. I am using spring > boot/grails/gradle/groovy/camel DSL to define routes. > > I looked in Camel in action MEAP (2nd edition). They want 2.17.1 > camel..... > > Camel in action 1st ed. does not seem to have anything useful. > It is either XML or it just says just do: > protected RouteBuilder createRouteBuilder() Throws.....{ > return new myRoute() > } > > It cannot find myRoute config due to the application context being empty. > > Has anyone gotten tests to work under these conditions? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/unit-testing-with-DSL-using-2-17-0-redh= at-630187-tp5793886.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --94eb2c04f048c56f4d054881ba46--