From 144a362aeebdd11a8144c704d3ee0414cbb70a84 Mon Sep 17 00:00:00 2001 From: Bosanac Dejan Date: Fri, 6 Aug 2010 15:35:09 +0000 Subject: [PATCH] test case for https://issues.apache.org/activemq/browse/AMQ-2203 - start=false git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@983027 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/activemq/spring/SpringTest.java | 8 +++ .../src/test/resources/spring-start-false.xml | 55 +++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 activemq-core/src/test/resources/spring-start-false.xml diff --git a/activemq-core/src/test/java/org/apache/activemq/spring/SpringTest.java b/activemq-core/src/test/java/org/apache/activemq/spring/SpringTest.java index 47a725750e..9bea3edc40 100755 --- a/activemq-core/src/test/java/org/apache/activemq/spring/SpringTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/spring/SpringTest.java @@ -87,4 +87,12 @@ public class SpringTest extends SpringTestSupport { 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()); + } } diff --git a/activemq-core/src/test/resources/spring-start-false.xml b/activemq-core/src/test/resources/spring-start-false.xml new file mode 100644 index 0000000000..447921e40f --- /dev/null +++ b/activemq-core/src/test/resources/spring-start-false.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file