CamelContextTestSupport class should start the camel context even it doesn't
use the RouteBuilder
-------------------------------------------------------------------------------------------------
Key: CAMEL-3733
URL: https://issues.apache.org/jira/browse/CAMEL-3733
Project: Camel
Issue Type: Bug
Components: camel-core, camel-test
Affects Versions: 2.6.0, 2.5.0, 2.4.0
Reporter: Willem Jiang
Assignee: Willem Jiang
Fix For: 2.7.0
Current CamelContextTestSupport class will not start the camelcontext if the
isUseRouteBuilder() return false.
If the component that is used by template needs to be started, your test method
will get the NPE or some strange error.
And you can these load when shutting down the camel context.
{code}
Mar 1, 2011 4:31:29 PM org.apache.camel.test.junit4.CamelTestSupport tearDown
INFO: Testing done:
com.fusesource.example.camel.cxf.jms.HelloWorldClient@e49d67c
Mar 1, 2011 4:31:29 PM org.apache.camel.impl.DefaultCamelContext doStop
INFO: Apache Camel 2.6.0-fuse-00-00 (CamelContext:camel-1) is shutting down
Mar 1, 2011 4:31:29 PM org.apache.camel.impl.DefaultCamelContext
createManagementStrategy
INFO: JMX is disabled. Using DefaultManagementStrategy.
Mar 1, 2011 4:31:29 PM org.apache.camel.impl.DefaultShutdownStrategy doShutdown
INFO: Starting to graceful shutdown 0 routes (timeout 10 seconds)
Mar 1, 2011 4:31:29 PM org.apache.camel.impl.DefaultShutdownStrategy doShutdown
INFO: Graceful shutdown of 0 routes completed in 0 seconds
Mar 1, 2011 4:31:29 PM org.apache.camel.impl.DefaultCamelContext doStop
INFO: Uptime: not started
Mar 1, 2011 4:31:29 PM org.apache.camel.impl.DefaultCamelContext doStop
INFO: Apache Camel 2.6.0-fuse-00-00 (CamelContext: camel-1) is shutdown in
0.023 seconds
{code}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira