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 CB1A318521 for ; Wed, 22 Jul 2015 16:50:39 +0000 (UTC) Received: (qmail 99493 invoked by uid 500); 22 Jul 2015 16:50:30 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 99462 invoked by uid 500); 22 Jul 2015 16:50:30 -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 99451 invoked by uid 99); 22 Jul 2015 16:50:29 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2015 16:50:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 572D218BF8E for ; Wed, 22 Jul 2015 16:50:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.487 X-Spam-Level: *** X-Spam-Status: No, score=3.487 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id lAX8lbIVRwKy for ; Wed, 22 Jul 2015 16:50:20 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 3587343CD3 for ; Wed, 22 Jul 2015 16:50:20 +0000 (UTC) Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 0CB6511AF816 for ; Wed, 22 Jul 2015 09:50:02 -0700 (PDT) Date: Wed, 22 Jul 2015 09:49:49 -0700 (MST) From: nabbleuser12221 To: users@camel.apache.org Message-ID: <1437583789979-5769753.post@n5.nabble.com> In-Reply-To: <1435328594780-5768600.post@n5.nabble.com> References: <1435328594780-5768600.post@n5.nabble.com> Subject: Re: CamelTestSupport and POJO consumer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ted, I am not sure if this is the correct answer, but this is how I was able to get my POJO consumers to work in my unit tests: protected RouteBuilder createRouteBuilder() throws Exception { BeanComponent enricher= new BeanComponent(); enricher.setCamelContext(this.context); context.addEndpoint("direct-vm:someEndpoint", enricher.createEndpoint(new PojoEnricher())); from("direct:start").to("direct-vm:someEndPoint").to("mock:result"); } -- View this message in context: http://camel.465427.n5.nabble.com/CamelTestSupport-and-POJO-consumer-tp5768600p5769753.html Sent from the Camel - Users mailing list archive at Nabble.com.