camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gzurow...@apache.org
Subject [1/2] camel git commit: Fixed Quartz2 component tests
Date Sat, 24 Oct 2015 10:12:04 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.15.x cba909b97 -> 4cbc8cd26


Fixed Quartz2 component tests


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

Branch: refs/heads/camel-2.15.x
Commit: 2c38524e9d79b85d96ba7f39b5e6a0c856dbd16d
Parents: cba909b
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Tue Oct 20 17:16:22 2015 +0200
Committer: Gregor Zurowski <gregor@zurowski.org>
Committed: Sat Oct 24 12:03:40 2015 +0200

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


http://git-wip-us.apache.org/repos/asf/camel/blob/2c38524e/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/CronScheduledRoutePolicyTest.java
----------------------------------------------------------------------
diff --git a/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/CronScheduledRoutePolicyTest.java
b/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/CronScheduledRoutePolicyTest.java
index 6b6ace4..f8d9b2e 100644
--- a/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/CronScheduledRoutePolicyTest.java
+++ b/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/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/2c38524e/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/SimpleScheduledRoutePolicyTest.java
----------------------------------------------------------------------
diff --git a/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/SimpleScheduledRoutePolicyTest.java
b/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/SimpleScheduledRoutePolicyTest.java
index b2b669e..c2dcbd6 100644
--- a/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/SimpleScheduledRoutePolicyTest.java
+++ b/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/SimpleScheduledRoutePolicyTest.java
@@ -59,7 +59,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/2c38524e/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/SpringScheduledRoutePolicyTest.java
----------------------------------------------------------------------
diff --git a/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/SpringScheduledRoutePolicyTest.java
b/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/SpringScheduledRoutePolicyTest.java
index 2926418..40666e8 100644
--- a/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/SpringScheduledRoutePolicyTest.java
+++ b/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/SpringScheduledRoutePolicyTest.java
@@ -45,7 +45,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