[hornetq-commits] JBoss hornetq SVN: r9718 - trunk/tests/src/org/hornetq/tests/integration/spring.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Sep 22 18:10:29 EDT 2010


Author: clebert.suconic at jboss.com
Date: 2010-09-22 18:10:29 -0400 (Wed, 22 Sep 2010)
New Revision: 9718

Modified:
   trunk/tests/src/org/hornetq/tests/integration/spring/SpringIntegrationTest.java
Log:
Fixing test

Modified: trunk/tests/src/org/hornetq/tests/integration/spring/SpringIntegrationTest.java
===================================================================
--- trunk/tests/src/org/hornetq/tests/integration/spring/SpringIntegrationTest.java	2010-09-22 19:49:05 UTC (rev 9717)
+++ trunk/tests/src/org/hornetq/tests/integration/spring/SpringIntegrationTest.java	2010-09-22 22:10:29 UTC (rev 9718)
@@ -1,7 +1,9 @@
 package org.hornetq.tests.integration.spring;
 
 import junit.framework.Assert;
-import junit.framework.TestCase;
+
+import org.hornetq.jms.server.embedded.EmbeddedJMS;
+import org.hornetq.tests.util.UnitTestCase;
 import org.springframework.context.ApplicationContext;
 import org.springframework.context.support.ClassPathXmlApplicationContext;
 
@@ -9,7 +11,7 @@
  * @author <a href="mailto:bill at burkecentral.com">Bill Burke</a>
  * @version $Revision: 1 $
  */
-public class SpringIntegrationTest extends TestCase
+public class SpringIntegrationTest extends UnitTestCase
 {
    public void testSpring() throws Exception
    {
@@ -20,5 +22,9 @@
       sender.send("Hello world");
       Thread.sleep(100);
       Assert.assertEquals(ExampleListener.lastMessage, "Hello world");
+      
+      EmbeddedJMS jms = (EmbeddedJMS) context.getBean("EmbeddedJms");
+      jms.stop();
+      
    }
 }



More information about the hornetq-commits mailing list