camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [camel] branch camel-2.19.x updated: CAMEL-12069 - Fixed JmsInOutTransferExchangeTest
Date Mon, 11 Dec 2017 08:31:36 GMT
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch camel-2.19.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.19.x by this push:
     new ad012ed  CAMEL-12069 - Fixed JmsInOutTransferExchangeTest
ad012ed is described below

commit ad012edfde3c200f353f31dfc8a329aab66a745d
Author: Andrea Cosentino <ancosen@gmail.com>
AuthorDate: Mon Dec 11 09:31:14 2017 +0100

    CAMEL-12069 - Fixed JmsInOutTransferExchangeTest
---
 .../org/apache/camel/component/jms/JmsInOutTransferExchangeTest.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsInOutTransferExchangeTest.java
b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsInOutTransferExchangeTest.java
index 1b3dda3..8613adf 100644
--- a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsInOutTransferExchangeTest.java
+++ b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsInOutTransferExchangeTest.java
@@ -82,12 +82,13 @@ public class JmsInOutTransferExchangeTest extends CamelTestSupport {
         assertEquals("hello", transferMessage.getHeader("string", String.class));
 
         Message resultMessage = result.getExchanges().get(0).getIn();
+        Exchange resultExchange = result.getExchanges().get(0);
         assertNotNull(resultMessage.getBody(SerializableResponseDto.class));
         assertEquals(Boolean.TRUE, resultMessage.getHeader("boolean", Boolean.class));
         assertEquals((Long) 123L, resultMessage.getHeader("long", Long.class));
         assertEquals((Double) 1.23, resultMessage.getHeader("double", Double.class));
         assertEquals("hello", resultMessage.getHeader("string", String.class));
-        assertEquals("PropertyValue", exchange.getProperty("PropertyName"));
+        assertEquals("PropertyValue", resultExchange.getProperty("PropertyName"));
     }
 
     @Override

-- 
To stop receiving notification emails like this one, please contact
['"commits@camel.apache.org" <commits@camel.apache.org>'].

Mime
View raw message