[
https://issues.apache.org/jira/browse/CAMEL-7754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14112037#comment-14112037
]
Charles Moulliard commented on CAMEL-7754:
------------------------------------------
Test case used
{code}
public class CamelQuartzTest extends CamelTestSupport {
@Test
public void testQuartzCronRoute() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:result");
mock.expectedMinimumMessageCount(3);
assertMockEndpointsSatisfied();
JobDetail job =
mock.getReceivedExchanges().get(0).getIn().getHeader("jobDetail",
JobDetail.class);
assertNotNull(job);
assertEquals("cron",
job.getJobDataMap().get(QuartzConstants.QUARTZ_TRIGGER_TYPE));
assertEquals("UTC",
job.getJobDataMap().get(QuartzConstants.QUARTZ_TRIGGER_CRON_TIMEZONE)); // ERROR
assertEquals("0/2 * * * * ?&trigger.timeZone=UTC",
job.getJobDataMap().get(QuartzConstants.QUARTZ_TRIGGER_CRON_EXPRESSION));
}
@Override
protected RouteBuilder createRouteBuilder() {
return new RouteBuilder() {
public void configure() {
from("quartz2://myGroup/myTimerName?cron=0/2+*+*+*+*+?&trigger.timeZone=UTC").to("mock:result");
}
};
}
}
{code}
> Property Trigger.timerZone is declared as contant but not implemented
> ---------------------------------------------------------------------
>
> Key: CAMEL-7754
> URL: https://issues.apache.org/jira/browse/CAMEL-7754
> Project: Camel
> Issue Type: Bug
> Components: camel-quartz, camel-quartz2
> Affects Versions: 2.12.1, 2.13.2
> Reporter: Charles Moulliard
> Fix For: 2.14.0
>
>
> Seems that we have a problem with Quartz/Quartz2 components. The doc claims
> that we can setup this property in the URI "trigger.timeZone"
> (http://camel.apache.org/quartz.html - see specifying timezone ) but quartz
> don't use it even if a constant is defined
> :https://www.dropbox.com/s/1wjt3slsz3jajlh/Screenshot%202014-08-27%2010.29.53.png?dl=0
> We have the same issue too with quartz2 -->
> https://www.dropbox.com/s/jcxnn72bzi38qob/Screenshot%202014-08-27%2010.31.34.png?dl=0
--
This message was sent by Atlassian JIRA
(v6.2#6252)