Return-Path: Delivered-To: apmail-camel-commits-archive@www.apache.org Received: (qmail 26370 invoked from network); 8 Oct 2009 18:55:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Oct 2009 18:55:34 -0000 Received: (qmail 465 invoked by uid 500); 8 Oct 2009 18:55:34 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 419 invoked by uid 500); 8 Oct 2009 18:55:34 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 410 invoked by uid 99); 8 Oct 2009 18:55:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2009 18:55:34 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2009 18:55:31 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id CBEE923888DB; Thu, 8 Oct 2009 18:55:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r823273 - in /camel/trunk/components/camel-jms/src: main/java/org/apache/camel/component/jms/JmsMessage.java test/java/org/apache/camel/component/jms/JmsRouteEndpointTest.java Date: Thu, 08 Oct 2009 18:55:10 -0000 To: commits@camel.apache.org From: janstey@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091008185510.CBEE923888DB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: janstey Date: Thu Oct 8 18:55:10 2009 New Revision: 823273 URL: http://svn.apache.org/viewvc?rev=823273&view=rev Log: add simple assertion for endpoint uri Modified: camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsMessage.java camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteEndpointTest.java Modified: camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsMessage.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsMessage.java?rev=823273&r1=823272&r2=823273&view=diff ============================================================================== --- camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsMessage.java (original) +++ camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsMessage.java Thu Oct 8 18:55:10 2009 @@ -57,7 +57,7 @@ @Override public void copyFrom(org.apache.camel.Message that) { // must initialize headers before we set the JmsMessage to avoid Camel - // populateing it before we do the copy + // populating it before we do the copy getHeaders().clear(); boolean copyMessageId = true; Modified: camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteEndpointTest.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteEndpointTest.java?rev=823273&r1=823272&r2=823273&view=diff ============================================================================== --- camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteEndpointTest.java (original) +++ camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteEndpointTest.java Thu Oct 8 18:55:10 2009 @@ -38,6 +38,8 @@ template.sendBody(jms, "Hello World"); + assertEndpointUri(jms, "jms:queue:hello"); + result.assertIsSatisfied(); }