Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 20506 invoked from network); 2 Mar 2011 14:11:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Mar 2011 14:11:05 -0000 Received: (qmail 35364 invoked by uid 500); 2 Mar 2011 14:11:05 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 35220 invoked by uid 500); 2 Mar 2011 14:11:04 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 34906 invoked by uid 99); 2 Mar 2011 14:11:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 14:11:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 14:10:57 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 097BD4B7E2 for ; Wed, 2 Mar 2011 14:10:37 +0000 (UTC) Date: Wed, 2 Mar 2011 14:10:37 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: dev@camel.apache.org Message-ID: <1586865708.7871.1299075037035.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1976341119.4498.1298969856962.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Resolved: (CAMEL-3733) Add comments on the CamelContextTestSupport class to tell user to start the camel context manually when the test doesn't use the RouteBuilder MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-3733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-3733. -------------------------------- Resolution: Fixed > 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