camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadr...@apache.org
Subject svn commit: r1164217 - /camel/trunk/components/camel-groovy/src/test/java/org/apache/camel/language/groovy/LanguageGroovyRouteTest.java
Date Thu, 01 Sep 2011 19:15:54 GMT
Author: hadrian
Date: Thu Sep  1 19:15:53 2011
New Revision: 1164217

URL: http://svn.apache.org/viewvc?rev=1164217&view=rev
Log:
URI encoding fix

Modified:
    camel/trunk/components/camel-groovy/src/test/java/org/apache/camel/language/groovy/LanguageGroovyRouteTest.java

Modified: camel/trunk/components/camel-groovy/src/test/java/org/apache/camel/language/groovy/LanguageGroovyRouteTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-groovy/src/test/java/org/apache/camel/language/groovy/LanguageGroovyRouteTest.java?rev=1164217&r1=1164216&r2=1164217&view=diff
==============================================================================
--- camel/trunk/components/camel-groovy/src/test/java/org/apache/camel/language/groovy/LanguageGroovyRouteTest.java
(original)
+++ camel/trunk/components/camel-groovy/src/test/java/org/apache/camel/language/groovy/LanguageGroovyRouteTest.java
Thu Sep  1 19:15:53 2011
@@ -16,6 +16,8 @@
  */
 package org.apache.camel.language.groovy;
 
+import java.net.URLEncoder;
+
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.test.junit4.CamelTestSupport;
 import org.junit.Test;
@@ -40,10 +42,10 @@ public class LanguageGroovyRouteTest ext
             @Override
             public void configure() throws Exception {
                 // START SNIPPET: e1
-                from("direct:start").to("language:groovy:request.body * 2").to("mock:result");
+                String script = URLEncoder.encode("request.body * 2", "UTF-8");
+                from("direct:start").to("language:groovy:" + script).to("mock:result");
                 // END SNIPPET: e1
             }
         };
     }
-
 }



Mime
View raw message