camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/2] camel git commit: CAMEL-8266 Allows ignoring directories for SFTP/FTP having no read permission using ignoreFileNotFoundOrPermissionError
Date Tue, 27 Jan 2015 06:39:00 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.14.x 5f17c37ac -> 53d87f5db
  refs/heads/master e369640c5 -> 5cf0fc315


CAMEL-8266 Allows ignoring directories for SFTP/FTP having no read permission using ignoreFileNotFoundOrPermissionError


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/5cf0fc31
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5cf0fc31
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5cf0fc31

Branch: refs/heads/master
Commit: 5cf0fc315c96dfab1d3d6406b2376add3f688e99
Parents: e369640
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Tue Jan 27 07:38:25 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Tue Jan 27 07:38:25 2015 +0100

----------------------------------------------------------------------
 .../file/remote/RemoteFileIgnoreDoPollErrorTest.java        | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/5cf0fc31/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/RemoteFileIgnoreDoPollErrorTest.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/RemoteFileIgnoreDoPollErrorTest.java
b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/RemoteFileIgnoreDoPollErrorTest.java
index 3ca70b6..f7e8dd89 100644
--- a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/RemoteFileIgnoreDoPollErrorTest.java
+++ b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/RemoteFileIgnoreDoPollErrorTest.java
@@ -90,14 +90,13 @@ public class RemoteFileIgnoreDoPollErrorTest {
         return new RemoteFileConsumer<Object>(remoteFileEndpoint, null, null) {
             @Override
             protected boolean doPollDirectory(String absolutePath, String dirName, List<GenericFile<Object>>
genericFiles, int depth) {
-                switch (doPollResult) {
-                case "IllegalStateException":
+                if ("IllegalStateException".equals(doPollResult)) {
                     throw new IllegalStateException("Problem");
-                case "GenericFileOperationFailedException":
+                } else if ("GenericFileOperationFailedException".equals(doPollResult)) {
                     throw new GenericFileOperationFailedException("Perm error");
-                case "true":
+                } else if ("true".equals(doPollResult)) {
                     return true;
-                default:
+                } else {
                     return false;
                 }
             }


Mime
View raw message