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 2016/04/04 15:47:30 UTC

[6/6] camel git commit: Fixed test

Fixed test


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

Branch: refs/heads/camel-2.17.x
Commit: 9fb6787c2faf2bd2cab7c24d111cf201b4c8f7a9
Parents: 0c90b32
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Apr 4 15:46:37 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Apr 4 15:47:15 2016 +0200

----------------------------------------------------------------------
 .../file/remote/FtpConsumerIdempotentMemoryRefTest.java        | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/9fb6787c/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerIdempotentMemoryRefTest.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerIdempotentMemoryRefTest.java b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerIdempotentMemoryRefTest.java
index 8de66c9..c81a82d 100644
--- a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerIdempotentMemoryRefTest.java
+++ b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerIdempotentMemoryRefTest.java
@@ -16,8 +16,6 @@
  */
 package org.apache.camel.component.file.remote;
 
-import java.util.concurrent.TimeUnit;
-
 import org.apache.camel.builder.NotifyBuilder;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.impl.JndiRegistry;
@@ -57,7 +55,7 @@ public class FtpConsumerIdempotentMemoryRefTest extends FtpServerTestSupport {
         sendFile(getFtpUrl(), "Hello E", "e.txt");
 
         assertMockEndpointsSatisfied();
-        assertTrue(notify.matches(5, TimeUnit.SECONDS));
+        assertTrue(notify.matchesMockWaitTime());
 
         assertEquals(5, repo.getCache().size());
         assertTrue(repo.contains("a.txt"));
@@ -79,7 +77,7 @@ public class FtpConsumerIdempotentMemoryRefTest extends FtpServerTestSupport {
         sendFile(getFtpUrl(), "Hello E", "g.txt");
 
         assertMockEndpointsSatisfied();
-        assertTrue(notify.matches(5, TimeUnit.SECONDS));
+        assertTrue(notify.matchesMockWaitTime());
 
         assertEquals(5, repo.getCache().size());
         assertTrue(repo.contains("a.txt"));