camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DEPREZ Arnaud AWL-IT" <>
Subject CronScheduledRoutePolicy in JUnit test
Date Wed, 30 May 2012 10:24:45 GMT
Hi all,

I would like to test my CronScheduledRoutePolicy in my JUnit test using org.apache.camel.test.junit4.CamelSpringTestSupport.

When I try to run my test, I get the following exception :

java.lang.NoSuchMethodError: org.quartz.Scheduler.isStarted()Z
                at org.apache.camel.component.quartz.QuartzComponent.startScheduler(
                at org.apache.camel.component.quartz.QuartzComponent.onCamelContextStarted(
                at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(
                at org.apache.camel.impl.DefaultCamelContext.doStartCamel(
                at org.apache.camel.impl.DefaultCamelContext.doStart(
                at org.apache.camel.spring.SpringCamelContext.doStart(
                at org.apache.camel.impl.ServiceSupport.start(
                at org.apache.camel.impl.ServiceSupport.start(
                at org.apache.camel.impl.DefaultCamelContext.start(
                at org.apache.camel.spring.SpringCamelContext.maybeStart(
                at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(
                at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(
                at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(
                at com.ReconciliationTest.createApplicationContext(
                at org.apache.camel.test.junit4.CamelSpringTestSupport.setUp(
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(
                at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
                at org.junit.runners.model.FrameworkMethod.invokeExplosively(
                at org.junit.internal.runners.statements.RunBefores.evaluate(
                at org.junit.internal.runners.statements.RunAfters.evaluate(
                at org.junit.runners.BlockJUnit4ClassRunner.runChild(
                at org.junit.runners.BlockJUnit4ClassRunner.runChild(
                at org.junit.runners.ParentRunner$
                at org.junit.runners.ParentRunner$1.schedule(
                at org.junit.runners.ParentRunner.runChildren(
                at org.junit.runners.ParentRunner.access$000(
                at org.junit.runners.ParentRunner$2.evaluate(
                at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(
                at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(
                at com.intellij.rt.execution.junit.JUnitStarter.main(
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(
                at com.intellij.rt.execution.application.AppMain.main(

The same route works fine in ServiceMix.

I think I'm missing some dependencies but I don't know which one.

I'm using :


I tried to add the dependencies for quartz :
                <artifactId> quartz</artifactId>

But it's still doesn't work.

If someone has an idea, you're welcome !


Arnaud Deprez


Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg
- 1130 Brussels - Belgium
RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872
Bankrekening-Compte Bancaire-Bank Account 310-0269424-44
BIC BBRUBEBB - IBAN BE55 3100 2694 2444

"The information contained in this e-mail and any attachment thereto is confidential and may
contain information which is protected by intellectual property rights.
This information is intended for the exclusive use of the recipient(s) named above.
This e-mail does not constitute any binding relationship or offer toward any of the addressees.
If you are not one of the addressees , one of their employees or a proxy holder entitled to
hand over this message to the addressee(s), any use of the information contained herein (e.g.
reproduction, divulgation, communication or distribution,...) is prohibited.
If you have received this message in error, please notify the sender and destroy it immediately
The integrity and security of this message cannot be guaranteed and it may be subject to data
corruption, interception and unauthorized amendment, for which we accept no liability."

  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message