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 33DE611C51 for ; Thu, 19 Jun 2014 08:51:25 +0000 (UTC) Received: (qmail 96630 invoked by uid 500); 19 Jun 2014 08:51:24 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 96577 invoked by uid 500); 19 Jun 2014 08:51:24 -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 96563 invoked by uid 99); 19 Jun 2014 08:51:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jun 2014 08:51:24 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pb0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jun 2014 08:51:22 +0000 Received: by mail-pb0-f45.google.com with SMTP id rr13so1708513pbb.4 for ; Thu, 19 Jun 2014 01:50:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:content-transfer-encoding:content-disposition; bh=CkXgcd4KgyZm361MpZSrQo23h240pOCMnR+J5JGSF/c=; b=hg/M1WqCBeGr4Jt07G2xCRQ9q5Zodb3Z5bH+f04+pibE6fSS+wojRpFtTygyBUx5Ql DDwyMb0dN3znggWIRawjH3BgsLvBOvtN6s+4I//6oPCOSco8N6R/vxUwnFNLUU1t6T9K N0yFVJmajasvDOnW+38h9rkDq36EqdnbAvwZgscRjBLn27iCXl0U+KOgeUdJBawq91S0 BDNtJT99Jk4pixm0qkWHW7UhKEFv+Cca58052pgdLlQaWOKTh7WThE8FTP/gv2Q3CycE pmVmRfuEg6oSHuVlPJGJhWYX45HDNIkU6CLeeoHH9U5Tb2c3MmPkVpaXu61cnwge2n5/ G+ig== X-Received: by 10.67.14.231 with SMTP id fj7mr3766708pad.115.1403167857296; Thu, 19 Jun 2014 01:50:57 -0700 (PDT) Received: from localhost ([125.33.122.43]) by mx.google.com with ESMTPSA id vy5sm23624065pac.13.2014.06.19.01.50.53 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Jun 2014 01:50:54 -0700 (PDT) Date: Thu, 19 Jun 2014 16:50:47 +0800 From: Willem Jiang To: users@camel.apache.org Message-ID: In-Reply-To: <1403080029823-5752492.post@n5.nabble.com> References: <1403080029823-5752492.post@n5.nabble.com> Subject: Re: How to mock rabbitmq endpoints? X-Mailer: Airmail (237) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org The last one should be OK. How did you define the =40MockEndpoints=3F -- =20 Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang =20 Weibo: =E5=A7=9C=E5=AE=81willem On June 18, 2014 at 4:27:36 PM, ozzyoli (ozzyoli=40gmail.com) wrote: > I'm working on my testing my CamelContext Routes. > =20 > I am using a SpringJunit4ClassRunner to run my tests and start my > CamelContext (defined in Spring XML). > I have the*=40MockEndpoints* annotation set at the class-level. > =20 > How do I reference the mocked equivalents of my RabbitMQ endpoints=3F > =20 > =46or instance given this RabbitMQ endpoint > =20 > rabbitmq://localhost:5672/test=3FautoDelete=3Dfalse&password=3Dxxxxxx&r= outingKey=3Dipm.adapter&username=3Dguest&vhost=3D%2=46 =20 > =20 > How do I get hold of the mocked version of that mocked endpoint=3F > =20 > =40EndpointInject(uri=3D=22mock:rabbitmq=22) > =20 > OR > =20 > =40EndpointInject(uri=3D=22mock:rabbitmq://localhost:5672=22) > =20 > OR > =20 > =40EndpointInject(uri=3D=22mock:rabbitmq://localhost:5672/test=3FautoDe= lete=3Dfalse&password=3Dxxxxxx&routingKey=3Dipm.adapter&username=3Dguest&= vhost=3D%2=46=22) =20 > =20 > OR > =20 > Something else altogether=3F (I'll admit I havent had much luck with an= y of > them so far) > =20 > =20 > Many thanks in advance, > Oli > =20 > =20 > =20 > -- > View this message in context: http://camel.465427.n5.nabble.com/How-to-= mock-rabbitmq-endpoints-tp5752492.html =20 > Sent from the Camel - Users mailing list archive at Nabble.com. > =20