[jboss-cvs] JBossAS SVN: r61827 - trunk/testsuite/src/main/org/jboss/test/jbossmessaging/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Mar 29 00:58:21 EDT 2007


Author: scott.stark at jboss.org
Date: 2007-03-29 00:58:20 -0400 (Thu, 29 Mar 2007)
New Revision: 61827

Modified:
   trunk/testsuite/src/main/org/jboss/test/jbossmessaging/test/JoramUnitTestCase.java
Log:
Push the jbm provider props to the system props in setup

Modified: trunk/testsuite/src/main/org/jboss/test/jbossmessaging/test/JoramUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jbossmessaging/test/JoramUnitTestCase.java	2007-03-29 04:57:23 UTC (rev 61826)
+++ trunk/testsuite/src/main/org/jboss/test/jbossmessaging/test/JoramUnitTestCase.java	2007-03-29 04:58:20 UTC (rev 61827)
@@ -21,6 +21,9 @@
   */
 package org.jboss.test.jbossmessaging.test;
 
+import java.util.Iterator;
+import java.util.Properties;
+
 import junit.framework.Test;
 import junit.framework.TestSuite;
 
@@ -88,17 +91,24 @@
          protected void setUp() throws Exception
          {
             super.setUp();
+            // Push the jbm provider props to the system props
+            Properties props = JMSTestCase.getProviderProperties();
+            Iterator iter = props.keySet().iterator();
+            while( iter.hasNext() )
+            {
+               String key = (String) iter.next();
+               String value = props.getProperty(key);
+               System.setProperty(key, value);
+            }
             ClassLoader loader = Thread.currentThread().getContextClassLoader();
-	    String resourceName = getJMSResourceRelativePathname("test-destinations-service.xml") ;
-
+            String resourceName = getJMSResourceRelativePathname("test-destinations-service.xml") ;
             deploy (loader.getResource(resourceName).toString());
          }
          protected void tearDown() throws Exception
          {
             super.tearDown();
             ClassLoader loader = Thread.currentThread().getContextClassLoader();
-	    String resourceName = getJMSResourceRelativePathname("test-destinations-service.xml") ;
-
+            String resourceName = getJMSResourceRelativePathname("test-destinations-service.xml") ;
             undeploy (loader.getResource(resourceName).toString());
          }
       };




More information about the jboss-cvs-commits mailing list