You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Kamil (JIRA)" <ji...@apache.org> on 2018/02/12 13:51:00 UTC

[jira] [Commented] (CAMEL-12257) Possibility to disable quartz2 route during testing

    [ https://issues.apache.org/jira/browse/CAMEL-12257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16360768#comment-16360768 ] 

Kamil commented on CAMEL-12257:
-------------------------------

By the way: nether "suspendRoute" nor "stopRoute" does prevent Cron from firing
{code:java}
from("quartz2://myCron/myCron?cron=0+0/30+*+*+*+?")
.id("my_cron_id")
.to("log:FIRING");
getContext().stopRoute("my_cron_id");{code}

> Possibility to disable quartz2 route during testing
> ---------------------------------------------------
>
>                 Key: CAMEL-12257
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12257
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-quartz2
>    Affects Versions: 2.20.2
>            Reporter: Kamil
>            Priority: Major
>
> While running integration tests, most of our components are mocked, but for now there is no possibility to completly disable quartz2 routes.
> My suggestion is to provide additional option "execute" which defaults to "true", but we can set it to "false" in tests. If this option is set to false - the route doesn't fire at all.
> It could be also nice (as an additional feature) to disable firing quartz2 routes CamelContext-wide



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)