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 2009/02/01 10:29:37 UTC
svn commit: r739721 -
/camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerMultipleDirectoriesTest.java
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());
}