You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/10/20 04:33:50 UTC

[2/2] git commit: CAMEL-7883 Fixed the CS errors

CAMEL-7883 Fixed the CS errors


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

Branch: refs/heads/master
Commit: f8c140f0183a5486fc2f594481484d1895190ef6
Parents: d57f402
Author: Willem Jiang <wi...@gmail.com>
Authored: Mon Oct 20 10:33:14 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Mon Oct 20 10:33:14 2014 +0800

----------------------------------------------------------------------
 .../ValidatorIncludeEncodingRouteTest.java         | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/f8c140f0/camel-core/src/test/java/org/apache/camel/component/validator/ValidatorIncludeEncodingRouteTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/validator/ValidatorIncludeEncodingRouteTest.java b/camel-core/src/test/java/org/apache/camel/component/validator/ValidatorIncludeEncodingRouteTest.java
index efb37f0..dc1e789 100644
--- a/camel-core/src/test/java/org/apache/camel/component/validator/ValidatorIncludeEncodingRouteTest.java
+++ b/camel-core/src/test/java/org/apache/camel/component/validator/ValidatorIncludeEncodingRouteTest.java
@@ -18,9 +18,7 @@ package org.apache.camel.component.validator;
 
 import org.apache.camel.ContextTestSupport;
 import org.apache.camel.Exchange;
-import org.apache.camel.LoggingLevel;
 import org.apache.camel.Processor;
-import org.apache.camel.ValidationException;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
 
@@ -38,7 +36,7 @@ public class ValidatorIncludeEncodingRouteTest extends ContextTestSupport {
         finallyEndpoint.expectedMessageCount(1);
         
         String body = "<t:text xmlns:t=\"org.text\">\n"
-                + "  <t:sentence>J'aime les camélidés</t:sentence>\n"
+                + "  <t:sentence>J'aime les cam\u00E9lid\u00E9s</t:sentence>\n"
                 + "</t:text>";
 
         template.sendBody("direct:start", body);
@@ -67,13 +65,12 @@ public class ValidatorIncludeEncodingRouteTest extends ContextTestSupport {
                         .to("validator:org/apache/camel/component/validator/text.xsd")
                         .to("mock:valid")
                     .doCatch(NumberFormatException.class)
-                 .process(new Processor() {
-                    
-                    @Override
-                    public void process(Exchange exchange) throws Exception {
-System.err.println("helo " + exchange.getException());                        
-                    }
-                })
+                    .process(new Processor() {
+                        @Override
+                        public void process(Exchange exchange) throws Exception {
+                            System.err.println("helo " + exchange.getException());                        
+                        }
+                    })
                         .to("mock:invalid")
                     .doFinally()
                         .to("mock:finally")