camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadr...@apache.org
Subject svn commit: r683864 - in /activemq/camel/trunk/components/camel-mina/src/test: java/org/apache/camel/component/mina/MinaConsumerTest.java resources/log4j.properties
Date Fri, 08 Aug 2008 05:57:13 GMT
Author: hadrian
Date: Thu Aug  7 22:57:13 2008
New Revision: 683864

URL: http://svn.apache.org/viewvc?rev=683864&view=rev
Log:
CAMEL-795

Modified:
    activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaConsumerTest.java
    activemq/camel/trunk/components/camel-mina/src/test/resources/log4j.properties

Modified: activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaConsumerTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaConsumerTest.java?rev=683864&r1=683863&r2=683864&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaConsumerTest.java
(original)
+++ activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaConsumerTest.java
Thu Aug  7 22:57:13 2008
@@ -16,7 +16,7 @@
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedBodiesReceived("Hello World");
 
-        template.sendBody("mina:tcp://localhost:6200?textline=true", "Hello World\n");
+        template.sendBody("mina:tcp://localhost:6200?textline=true", "Hello World");
 
         assertMockEndpointsSatisifed();
         // END SNIPPET: e2
@@ -24,7 +24,7 @@
 
     public void testSendTextlineSyncText() throws Exception {
         // START SNIPPET: e4
-        String response = (String)template.sendBody("mina:tcp://localhost:6201?textline=true&sync=true",
"World\n");
+        String response = (String)template.sendBody("mina:tcp://localhost:6201?textline=true&sync=true",
"World");
         assertEquals("Bye World", response);
         // END SNIPPET: e4
     }
@@ -40,7 +40,7 @@
                 from("mina:tcp://localhost:6201?textline=true&sync=true").process(new
Processor() {
                     public void process(Exchange exchange) throws Exception {
                         String body = exchange.getIn().getBody(String.class);
-                        exchange.getOut().setBody("Bye " + body + "\n");
+                        exchange.getOut().setBody("Bye " + body);
                     }
                 });
                 // END SNIPPET: e3

Modified: activemq/camel/trunk/components/camel-mina/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-mina/src/test/resources/log4j.properties?rev=683864&r1=683863&r2=683864&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-mina/src/test/resources/log4j.properties (original)
+++ activemq/camel/trunk/components/camel-mina/src/test/resources/log4j.properties Thu Aug
 7 22:57:13 2008
@@ -31,5 +31,5 @@
 log4j.appender.file.layout.ConversionPattern=%d %-5p %c{1} - %m %n
 log4j.appender.file.file=target/camel-mina-test.log
 
-# debug loging for Camel
-log4j.logger.org.apache.camel.component.mina=DEBUG
+# debug logging for camel-mina
+#log4j.logger.org.apache.camel.component.mina=DEBUG



Mime
View raw message