camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1067159 - /camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerExpressionTest.java
Date Fri, 04 Feb 2011 11:45:53 GMT
Author: davsclaus
Date: Fri Feb  4 11:45:53 2011
New Revision: 1067159

URL: http://svn.apache.org/viewvc?rev=1067159&view=rev
Log:
CAMEL-3617: Fixed test on windows

Modified:
    camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerExpressionTest.java

Modified: camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerExpressionTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerExpressionTest.java?rev=1067159&r1=1067158&r2=1067159&view=diff
==============================================================================
--- camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerExpressionTest.java
(original)
+++ camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerExpressionTest.java
Fri Feb  4 11:45:53 2011
@@ -85,11 +85,14 @@ public class FtpProducerExpressionTest e
 
     @Test
     public void testProducerComplexByExpression() throws Exception {
+        // need one extra subdirectory (=foo) to be able to start with .. in the fileName
option
+        String url = "ftp://admin@localhost:" + getPort() + "/filelanguage/foo?password=admin";
+        
         String expression = "../filelanguageinbox/myfile-${bean:myguidgenerator.guid}-${date:now:yyyyMMdd}.txt";
-        template.sendBody(getFtpUrl() + "&fileName=" + expression, "Hello World");
+        template.sendBody(url + "&fileName=" + expression, "Hello World");
 
         String date = new SimpleDateFormat("yyyyMMdd").format(new Date());
-        assertFileExists(FTP_ROOT_DIR + "filelanguageinbox/myfile-123-" + date + ".txt");
+        assertFileExists(FTP_ROOT_DIR + "filelanguage/filelanguageinbox/myfile-123-" + date
+ ".txt");
     }
 
     @Test



Mime
View raw message