Author: ningjiang
Date: Thu Dec 20 01:31:56 2012
New Revision: 1424261
URL: http://svn.apache.org/viewvc?rev=1424261&view=rev
Log:
CAMEL-5881 using the UTF_8 encoding for the String which encoding is out of
ASCII
Modified:
camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerWithCharsetTest.java
camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerFileWithCharsetTest.java
Modified:
camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerWithCharsetTest.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerWithCharsetTest.java?rev=1424261&r1=1424260&r2=1424261&view=diff
==============================================================================
---
camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerWithCharsetTest.java
(original)
+++
camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerWithCharsetTest.java
Thu Dec 20 01:31:56 2012
@@ -31,7 +31,7 @@ import org.junit.Test;
public class FtpConsumerWithCharsetTest extends FtpServerTestSupport {
- private final String payload = "æøå ©";
+ private final String payload = "\u00e6\u00f8\u00e5 \u00a9";
private String getFtpUrl() {
return "ftp://admin@localhost:" + getPort() +
"/upload?password=admin&charset=iso-8859-1";
Modified:
camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerFileWithCharsetTest.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerFileWithCharsetTest.java?rev=1424261&r1=1424260&r2=1424261&view=diff
==============================================================================
---
camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerFileWithCharsetTest.java
(original)
+++
camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerFileWithCharsetTest.java
Thu Dec 20 01:31:56 2012
@@ -26,7 +26,7 @@ import org.apache.camel.util.IOHelper;
import org.junit.Test;
public class FtpProducerFileWithCharsetTest extends FtpServerTestSupport {
- private String payload = "æøå ©";
+ private String payload = "\u00e6\u00f8\u00e5 \u00a9";
private String getFtpUrl() {
return "ftp://admin@localhost:" + getPort() +
"/upload?charset=iso-8859-1&password=admin";