From 6b03bd3f9be483fc861b28a40e8ea3ae8956263b Mon Sep 17 00:00:00 2001 From: James Strachan Date: Tue, 1 Aug 2006 15:10:59 +0000 Subject: [PATCH] added a test case showing how to use the XBean configuration in a regular Spring XML file using the Spring 2 namespace handler feature git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@427599 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/activemq/spring/SpringTest.java | 7 +- .../test/resources/spring-embedded-xbean.xml | 84 +++++++++++++++++++ 2 files changed, 90 insertions(+), 1 deletion(-) create mode 100755 activemq-core/src/test/resources/spring-embedded-xbean.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 fc8da1b402..dbb9148c9c 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 @@ -113,7 +113,7 @@ public class SpringTest extends TestCase { String config = "spring-jndi.xml"; assertSenderConfig(config); } - + /** * Spring configured test where in the connection context is set to use * an embedded broker. Configuration file is /resources/spring-embedded.xml @@ -126,6 +126,11 @@ public class SpringTest extends TestCase { assertSenderConfig(config); } + public void testSenderWithSpringXmlUsingSpring2NamespacesWithEmbeddedBrokerConfiguredViaXml() throws Exception { + String config = "spring-embedded-xbean.xml"; + assertSenderConfig(config); + } + /** * assert method that is used by all the test method to send and receive messages * based on each spring configuration. diff --git a/activemq-core/src/test/resources/spring-embedded-xbean.xml b/activemq-core/src/test/resources/spring-embedded-xbean.xml new file mode 100755 index 0000000000..c925a3a083 --- /dev/null +++ b/activemq-core/src/test/resources/spring-embedded-xbean.xml @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10 + + + + + + + + + + + + + + + + + + + org.apache.activemq.spring.Test.spring.embedded + + + + +