[
https://issues.apache.org/jira/browse/CAMEL-3733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Willem Jiang updated CAMEL-3733:
--------------------------------
Summary: Add comments on the CamelContextTestSupport class to tell user to
start the camel context manually when the test doesn't use the RouteBuilder
(was: CamelContextTestSupport class should start the camel context even it
doesn't use the RouteBuilder)
> Add comments on the CamelContextTestSupport class to tell user to start the
> camel context manually when the test doesn't use the RouteBuilder
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-3733
> URL: https://issues.apache.org/jira/browse/CAMEL-3733
> Project: Camel
> Issue Type: Improvement
> Components: camel-core, camel-test
> Affects Versions: 2.4.0, 2.5.0, 2.6.0
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Priority: Minor
> 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