Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 66149 invoked from network); 16 Sep 2010 17:34:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Sep 2010 17:34:02 -0000 Received: (qmail 62011 invoked by uid 500); 16 Sep 2010 17:34:02 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 61934 invoked by uid 500); 16 Sep 2010 17:34:01 -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 61926 invoked by uid 500); 16 Sep 2010 17:34:01 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 61923 invoked by uid 99); 16 Sep 2010 17:34:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Sep 2010 17:34:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Sep 2010 17:34:01 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8GHXeq8026995 for ; Thu, 16 Sep 2010 17:33:40 GMT Message-ID: <23070764.18261284658420896.JavaMail.jira@thor> Date: Thu, 16 Sep 2010 13:33:40 -0400 (EDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Resolved: (CAMEL-3129) Support user-defined shutdown timeout for CamelTestSupport In-Reply-To: <22135009.18121284653921340.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/CAMEL-3129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-3129. -------------------------------- Fix Version/s: 2.5.0 Resolution: Fixed trunk: 997858. > Support user-defined shutdown timeout for CamelTestSupport > ---------------------------------------------------------- > > Key: CAMEL-3129 > URL: https://issues.apache.org/activemq/browse/CAMEL-3129 > Project: Apache Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.4.0 > Reporter: Bruno Borges > Assignee: Claus Ibsen > Fix For: 2.5.0 > > > Would be nice if CamelTestSupport could allow user to define the Shutdown timeout of CamelContext. > We at Neociclo are finding difficult to debug through JUnit tests because of the hard-coded 10s timeout. > public void setUp() ... { > ... > context = createCamelContext(); > assertValidContext(context); > // reduce default shutdown timeout to avoid waiting for 300 seconds > -- context.getShutdownStrategy().setTimeout(10); > ++ context.getShutdownStrategy().setTimeout(getShutdownTimeout()); > ... > } > + protected int getShutdownTimeout() { > + return 10; > + } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.