camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r739721 - /camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerMultipleDirectoriesTest.java
Date Sun, 01 Feb 2009 09:29:37 GMT
Author: ningjiang
Date: Sun Feb  1 09:29:37 2009
New Revision: 739721

URL: http://svn.apache.org/viewvc?rev=739721&view=rev
Log:
CAMEL-1306 Fixed the unit test error of camel-ftp

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

Modified: camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerMultipleDirectoriesTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerMultipleDirectoriesTest.java?rev=739721&r1=739720&r2=739721&view=diff
==============================================================================
--- camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerMultipleDirectoriesTest.java
(original)
+++ camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerMultipleDirectoriesTest.java
Sun Feb  1 09:29:37 2009
@@ -50,20 +50,20 @@
 
         RemoteFileExchange exchange = (RemoteFileExchange) mock.getExchanges().get(0);
         RemoteFile file = (RemoteFile) exchange.getGenericFile();
-        assertEquals("/multidir/bye.txt", file.getAbsoluteFileName());
-        assertEquals("bye.txt", file.getRelativeFileName());
+        assertDirectoryEquals("/multidir/bye.txt", file.getAbsoluteFileName());
+        assertDirectoryEquals("bye.txt", file.getRelativeFileName());
         assertEquals("bye.txt", file.getFileName());
 
         exchange = (RemoteFileExchange) mock.getExchanges().get(1);
         file = (RemoteFile) exchange.getGenericFile();
-        assertEquals("/multidir/sub/hello.txt", file.getAbsoluteFileName());
-        assertEquals("sub/hello.txt", file.getRelativeFileName());
+        assertDirectoryEquals("/multidir/sub/hello.txt", file.getAbsoluteFileName());
+        assertDirectoryEquals("sub/hello.txt", file.getRelativeFileName());
         assertEquals("hello.txt", file.getFileName());
 
         exchange = (RemoteFileExchange) mock.getExchanges().get(2);
         file = (RemoteFile) exchange.getGenericFile();
-        assertEquals("/multidir/sub/sub2/godday.txt", file.getAbsoluteFileName());
-        assertEquals("sub/sub2/godday.txt", file.getRelativeFileName());
+        assertDirectoryEquals("/multidir/sub/sub2/godday.txt", file.getAbsoluteFileName());
+        assertDirectoryEquals("sub/sub2/godday.txt", file.getRelativeFileName());
         assertEquals("godday.txt", file.getFileName());
     }
 



Mime
View raw message