You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/10/04 07:31:05 UTC

camel git commit: CAMEL-11866: File consumer should report exceptions from fileName expression such as a bean not found exception.

Repository: camel
Updated Branches:
  refs/heads/camel-2.19.x a51e93ef9 -> 878e184e7


CAMEL-11866: File consumer should report exceptions from fileName expression such as a bean not found exception.


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

Branch: refs/heads/camel-2.19.x
Commit: 878e184e7cd08091f7f91f3c61538eabb7534908
Parents: a51e93e
Author: Claus Ibsen <da...@apache.org>
Authored: Wed Oct 4 09:30:58 2017 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Oct 4 09:30:58 2017 +0200

----------------------------------------------------------------------
 .../file/FileConsumerFileExpressionThrowExceptionTest.java       | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/878e184e/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerFileExpressionThrowExceptionTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerFileExpressionThrowExceptionTest.java b/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerFileExpressionThrowExceptionTest.java
index 2ec7d8e..073f7e9 100644
--- a/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerFileExpressionThrowExceptionTest.java
+++ b/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerFileExpressionThrowExceptionTest.java
@@ -28,8 +28,6 @@ import org.apache.camel.component.bean.MethodNotFoundException;
 import org.apache.camel.impl.JndiRegistry;
 import org.apache.camel.spi.PollingConsumerPollStrategy;
 
-import static org.awaitility.Awaitility.await;
-
 /**
  * Unit test for expression option for file consumer.
  */
@@ -73,7 +71,7 @@ public class FileConsumerFileExpressionThrowExceptionTest extends ContextTestSup
 
         context.start();
 
-        await().atMost(2, TimeUnit.SECONDS).until(() -> LATCH.getCount() == 0);
+        assertTrue(LATCH.await(2, TimeUnit.SECONDS));
 
         // and we should rollback X number of times
         assertTrue(event.startsWith("rollback"));