camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [camel] branch master updated: fixed minor typos
Date Fri, 03 Nov 2017 09:40:05 GMT
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 89f3a0a  fixed minor typos
89f3a0a is described below

commit 89f3a0a5cc40d84dbd153a2f64af29c4769a20c5
Author: Rajani-K <rajani.bgk@gmail.com>
AuthorDate: Fri Nov 3 15:01:08 2017 +0530

    fixed minor typos
---
 .../camel/component/jms/JmsMessageTypeTest.java    | 23 +++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsMessageTypeTest.java
b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsMessageTypeTest.java
index bab3190..ada2333 100644
--- a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsMessageTypeTest.java
+++ b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsMessageTypeTest.java
@@ -58,6 +58,7 @@ public class JmsMessageTypeTest extends CamelTestSupport {
         // we use Text type then it should be a String
         mock.message(0).body().isInstanceOf(String.class);
 
+        // we send an object and force it to use Text type
         template.sendBodyAndHeader("direct:foo", new MyFooBean("World"), JMS_MESSAGE_TYPE,
"Text");
 
         assertMockEndpointsSatisfied();
@@ -70,7 +71,7 @@ public class JmsMessageTypeTest extends CamelTestSupport {
         // we use Text type then it should be a String
         mock.message(0).body().isInstanceOf(String.class);
 
-        // we send an object and fore it to use Text type
+        // we send an object and force it to use Text type
         template.sendBody("direct:text", new MyFooBean("World"));
 
         assertMockEndpointsSatisfied();
@@ -83,7 +84,7 @@ public class JmsMessageTypeTest extends CamelTestSupport {
         // we use Text type then it should be a String
         mock.message(0).body().isInstanceOf(String.class);
 
-        // we send an object and fore it to use Text type
+        // we send a string and force it to use Text type
         template.sendBody("direct:text", "Hello World");
 
         assertMockEndpointsSatisfied();
@@ -95,6 +96,7 @@ public class JmsMessageTypeTest extends CamelTestSupport {
         mock.expectedBodiesReceived("Bye World".getBytes());
         mock.message(0).body().isInstanceOf(byte[].class);
 
+        // we send an object and force it to use Bytes type
         template.sendBodyAndHeader("direct:foo", new MyFooBean("World"), JMS_MESSAGE_TYPE,
"Bytes");
 
         assertMockEndpointsSatisfied();
@@ -106,7 +108,7 @@ public class JmsMessageTypeTest extends CamelTestSupport {
         mock.expectedBodiesReceived("Bye World".getBytes());
         mock.message(0).body().isInstanceOf(byte[].class);
 
-        // we send an object and fore it to use Bytes type
+        // we send an object and force it to use Bytes type
         template.sendBody("direct:bytes", new MyFooBean("World"));
 
         assertMockEndpointsSatisfied();
@@ -118,8 +120,8 @@ public class JmsMessageTypeTest extends CamelTestSupport {
         mock.expectedBodiesReceived("Bye World".getBytes());
         mock.message(0).body().isInstanceOf(byte[].class);
 
-        // we send an object and fore it to use Text type
-        template.sendBody("direct:bytes", "Bye World".getBytes());
+        // we send a string and force it to use Bytes type
+        template.sendBody("direct:bytes", "Bye World");
 
         assertMockEndpointsSatisfied();
     }
@@ -130,6 +132,7 @@ public class JmsMessageTypeTest extends CamelTestSupport {
         mock.expectedMessageCount(1);
         mock.message(0).body().isInstanceOf(Map.class);
 
+        // we send an object and force it to use Map type
         template.sendBodyAndHeader("direct:foo", new MyFooBean("Claus"), JMS_MESSAGE_TYPE,
"Map");
 
         assertMockEndpointsSatisfied();
@@ -143,6 +146,7 @@ public class JmsMessageTypeTest extends CamelTestSupport {
         mock.expectedMessageCount(1);
         mock.message(0).body().isInstanceOf(Map.class);
 
+        // we send an object and force it to use Map type
         template.sendBody("direct:map", new MyFooBean("Claus"));
 
         assertMockEndpointsSatisfied();
@@ -159,6 +163,7 @@ public class JmsMessageTypeTest extends CamelTestSupport {
         Map<String, Object> body = new HashMap<String, Object>();
         body.put("name", "Claus");
 
+        // we send a Map object and force it to use Map type
         template.sendBody("direct:map", body);
 
         assertMockEndpointsSatisfied();
@@ -170,10 +175,10 @@ public class JmsMessageTypeTest extends CamelTestSupport {
     public void testHeaderObjectType() throws Exception {
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedMessageCount(1);
-        // we use Text type then it should be a String
+        // we use Object type then it should be a MyFooBean object
         mock.message(0).body().isInstanceOf(MyFooBean.class);
 
-        // we send an object and fore it to use Text type
+        // we send an object and force it to use Object type
         template.sendBodyAndHeader("direct:foo", new MyFooBean("James"), JMS_MESSAGE_TYPE,
"Object");
 
         assertMockEndpointsSatisfied();
@@ -185,10 +190,10 @@ public class JmsMessageTypeTest extends CamelTestSupport {
     public void testObjectType() throws Exception {
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedMessageCount(1);
-        // we use Text type then it should be a String
+        // we use Object type then it should be a MyFooBean object
         mock.message(0).body().isInstanceOf(MyFooBean.class);
 
-        // we send an object and fore it to use Text type
+        // we send an object and force it to use Object type
         template.sendBody("direct:object", new MyFooBean("James"));
 
         assertMockEndpointsSatisfied();

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

Mime
View raw message