Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 50747 invoked from network); 6 Aug 2010 15:36:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Aug 2010 15:36:31 -0000 Received: (qmail 51101 invoked by uid 500); 6 Aug 2010 15:36:31 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 51045 invoked by uid 500); 6 Aug 2010 15:36:31 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 51036 invoked by uid 99); 6 Aug 2010 15:36:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Aug 2010 15:36:30 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Aug 2010 15:36:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8E80523889E3; Fri, 6 Aug 2010 15:35:09 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r983027 - in /activemq/trunk/activemq-core/src/test: java/org/apache/activemq/spring/SpringTest.java resources/spring-start-false.xml Date: Fri, 06 Aug 2010 15:35:09 -0000 To: commits@activemq.apache.org From: dejanb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100806153509.8E80523889E3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dejanb Date: Fri Aug 6 15:35:09 2010 New Revision: 983027 URL: http://svn.apache.org/viewvc?rev=983027&view=rev Log: test case for https://issues.apache.org/activemq/browse/AMQ-2203 - start=false Added: activemq/trunk/activemq-core/src/test/resources/spring-start-false.xml Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/spring/SpringTest.java Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/spring/SpringTest.java URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/spring/SpringTest.java?rev=983027&r1=983026&r2=983027&view=diff ============================================================================== --- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/spring/SpringTest.java (original) +++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/spring/SpringTest.java Fri Aug 6 15:35:09 2010 @@ -87,4 +87,12 @@ public class SpringTest extends SpringTe String config = "spring-embedded-xbean-local.xml"; assertSenderConfig(config); } + + public void testStartFalse() throws Exception { + String config = "spring-start-false.xml"; + Thread.currentThread().setContextClassLoader(SpringTest.class.getClassLoader()); + context = new ClassPathXmlApplicationContext(config); + BrokerService broker = (BrokerService)context.getBean(BrokerService.class); + assertFalse("Broker is started", broker.isStarted()); + } } Added: activemq/trunk/activemq-core/src/test/resources/spring-start-false.xml URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/resources/spring-start-false.xml?rev=983027&view=auto ============================================================================== --- activemq/trunk/activemq-core/src/test/resources/spring-start-false.xml (added) +++ activemq/trunk/activemq-core/src/test/resources/spring-start-false.xml Fri Aug 6 15:35:09 2010 @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file