camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/2] git commit: Using camel converter directly in the UnsharableCodecsConflicts*Test
Date Fri, 18 Jul 2014 07:55:54 GMT
Using camel converter directly in the UnsharableCodecsConflicts*Test


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d6476426
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d6476426
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d6476426

Branch: refs/heads/master
Commit: d6476426b44ecf9a6048e7758342f1c545c93391
Parents: 024487f
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Fri Jul 18 15:48:09 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Fri Jul 18 15:55:20 2014 +0800

----------------------------------------------------------------------
 .../camel/component/netty/UnsharableCodecsConflicts2Test.java    | 4 +---
 .../camel/component/netty/UnsharableCodecsConflictsTest.java     | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/d6476426/components/camel-netty/src/test/java/org/apache/camel/component/netty/UnsharableCodecsConflicts2Test.java
----------------------------------------------------------------------
diff --git a/components/camel-netty/src/test/java/org/apache/camel/component/netty/UnsharableCodecsConflicts2Test.java
b/components/camel-netty/src/test/java/org/apache/camel/component/netty/UnsharableCodecsConflicts2Test.java
index 9b4d0ab..a90ba6a 100644
--- a/components/camel-netty/src/test/java/org/apache/camel/component/netty/UnsharableCodecsConflicts2Test.java
+++ b/components/camel-netty/src/test/java/org/apache/camel/component/netty/UnsharableCodecsConflicts2Test.java
@@ -115,9 +115,7 @@ public class UnsharableCodecsConflicts2Test extends BaseNettyTest {
 
         @Override
         public void process(Exchange exchange) throws Exception {
-            exchange.getOut().setBody(
-                    new String(((BigEndianHeapChannelBuffer) exchange.getIn()
-                            .getBody()).array()));
+            exchange.getOut().setBody(exchange.getIn().getBody(String.class));
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/camel/blob/d6476426/components/camel-netty/src/test/java/org/apache/camel/component/netty/UnsharableCodecsConflictsTest.java
----------------------------------------------------------------------
diff --git a/components/camel-netty/src/test/java/org/apache/camel/component/netty/UnsharableCodecsConflictsTest.java
b/components/camel-netty/src/test/java/org/apache/camel/component/netty/UnsharableCodecsConflictsTest.java
index 86f93a3..129752e 100644
--- a/components/camel-netty/src/test/java/org/apache/camel/component/netty/UnsharableCodecsConflictsTest.java
+++ b/components/camel-netty/src/test/java/org/apache/camel/component/netty/UnsharableCodecsConflictsTest.java
@@ -122,7 +122,7 @@ public class UnsharableCodecsConflictsTest extends BaseNettyTest {
 
         @Override
         public void process(Exchange exchange) throws Exception {
-            exchange.getOut().setBody(new String(((BigEndianHeapChannelBuffer) exchange.getIn().getBody()).array()));
+            exchange.getOut().setBody(exchange.getIn().getBody(String.class));
         }
     }
 


Mime
View raw message