camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gzurow...@apache.org
Subject camel git commit: Fix camel-quartz unit tests
Date Sat, 24 Oct 2015 10:01:27 GMT
Repository: camel
Updated Branches:
  refs/heads/master 2866a6348 -> df75c1ca7


Fix camel-quartz unit tests

Signed-off-by: Gregor Zurowski <gregor@zurowski.org>

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

Branch: refs/heads/master
Commit: df75c1ca745ef1c8fa39329b8be0e22f40b982e1
Parents: 2866a63
Author: Gregor Zurowski <gregor@zurowski.org>
Authored: Sat Oct 24 12:00:23 2015 +0200
Committer: Gregor Zurowski <gregor@zurowski.org>
Committed: Sat Oct 24 12:00:56 2015 +0200

----------------------------------------------------------------------
 .../camel/routepolicy/quartz/CronScheduledRoutePolicyTest.java | 6 +++---
 .../routepolicy/quartz/SimpleScheduledRoutePolicyTest.java     | 2 +-
 .../routepolicy/quartz/SpringScheduledRoutePolicyTest.java     | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/df75c1ca/components/camel-quartz/src/test/java/org/apache/camel/routepolicy/quartz/CronScheduledRoutePolicyTest.java
----------------------------------------------------------------------
diff --git a/components/camel-quartz/src/test/java/org/apache/camel/routepolicy/quartz/CronScheduledRoutePolicyTest.java
b/components/camel-quartz/src/test/java/org/apache/camel/routepolicy/quartz/CronScheduledRoutePolicyTest.java
index d34a9b2..7f76119 100644
--- a/components/camel-quartz/src/test/java/org/apache/camel/routepolicy/quartz/CronScheduledRoutePolicyTest.java
+++ b/components/camel-quartz/src/test/java/org/apache/camel/routepolicy/quartz/CronScheduledRoutePolicyTest.java
@@ -64,8 +64,8 @@ public class CronScheduledRoutePolicyTest extends CamelTestSupport {
             }
         });
         context.start();
-        context.stopRoute("test1", 0, TimeUnit.MILLISECONDS);
-        context.stopRoute("test2", 0, TimeUnit.MILLISECONDS);
+        context.stopRoute("test1", 1000, TimeUnit.MILLISECONDS);
+        context.stopRoute("test2", 1000, TimeUnit.MILLISECONDS);
 
         Thread.sleep(5000);
         assertTrue(context.getRouteStatus("test1") == ServiceStatus.Started);
@@ -125,7 +125,7 @@ public class CronScheduledRoutePolicyTest extends CamelTestSupport {
             }
         });
         context.start();
-        context.stopRoute("test", 0, TimeUnit.MILLISECONDS);
+        context.stopRoute("test", 1000, TimeUnit.MILLISECONDS);
         
         Thread.sleep(5000);
         assertTrue(context.getRouteStatus("test") == ServiceStatus.Started);

http://git-wip-us.apache.org/repos/asf/camel/blob/df75c1ca/components/camel-quartz/src/test/java/org/apache/camel/routepolicy/quartz/SimpleScheduledRoutePolicyTest.java
----------------------------------------------------------------------
diff --git a/components/camel-quartz/src/test/java/org/apache/camel/routepolicy/quartz/SimpleScheduledRoutePolicyTest.java
b/components/camel-quartz/src/test/java/org/apache/camel/routepolicy/quartz/SimpleScheduledRoutePolicyTest.java
index 92199be..e87d04f 100644
--- a/components/camel-quartz/src/test/java/org/apache/camel/routepolicy/quartz/SimpleScheduledRoutePolicyTest.java
+++ b/components/camel-quartz/src/test/java/org/apache/camel/routepolicy/quartz/SimpleScheduledRoutePolicyTest.java
@@ -62,7 +62,7 @@ public class SimpleScheduledRoutePolicyTest extends CamelTestSupport {
             }
         });
         context.start();
-        context.stopRoute("test", 0, TimeUnit.MILLISECONDS);
+        context.stopRoute("test", 1000, TimeUnit.MILLISECONDS);
         
         Thread.sleep(5000);
         assertTrue(context.getRouteStatus("test") == ServiceStatus.Started);

http://git-wip-us.apache.org/repos/asf/camel/blob/df75c1ca/components/camel-quartz/src/test/java/org/apache/camel/routepolicy/quartz/SpringScheduledRoutePolicyTest.java
----------------------------------------------------------------------
diff --git a/components/camel-quartz/src/test/java/org/apache/camel/routepolicy/quartz/SpringScheduledRoutePolicyTest.java
b/components/camel-quartz/src/test/java/org/apache/camel/routepolicy/quartz/SpringScheduledRoutePolicyTest.java
index 2e87b90..39745ca 100644
--- a/components/camel-quartz/src/test/java/org/apache/camel/routepolicy/quartz/SpringScheduledRoutePolicyTest.java
+++ b/components/camel-quartz/src/test/java/org/apache/camel/routepolicy/quartz/SpringScheduledRoutePolicyTest.java
@@ -47,7 +47,7 @@ public abstract class SpringScheduledRoutePolicyTest extends TestSupport
{
         MockEndpoint mock = context.getEndpoint("mock:success", MockEndpoint.class);
         mock.expectedMinimumMessageCount(1);
         
-        context.stopRoute("testRoute", 0, TimeUnit.MILLISECONDS);
+        context.stopRoute("testRoute", 1000, TimeUnit.MILLISECONDS);
         
         Thread.sleep(4000);
         assertTrue(context.getRouteStatus("testRoute") == ServiceStatus.Started);


Mime
View raw message