[jboss-cvs] JBossAS SVN: r74625 - trunk/testsuite/src/main/org/jboss/test/naming/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Jun 16 10:35:49 EDT 2008
Author: adrian at jboss.org
Date: 2008-06-16 10:35:49 -0400 (Mon, 16 Jun 2008)
New Revision: 74625
Modified:
trunk/testsuite/src/main/org/jboss/test/naming/test/NamingStressTestCase.java
Log:
The Naming Stress test needs the test jms destinations deployed
Modified: trunk/testsuite/src/main/org/jboss/test/naming/test/NamingStressTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/naming/test/NamingStressTestCase.java 2008-06-16 14:35:20 UTC (rev 74624)
+++ trunk/testsuite/src/main/org/jboss/test/naming/test/NamingStressTestCase.java 2008-06-16 14:35:49 UTC (rev 74625)
@@ -21,6 +21,7 @@
*/
package org.jboss.test.naming.test;
+import java.net.URL;
import java.util.Properties;
import junit.framework.Test;
@@ -40,15 +41,20 @@
super(name);
}
- public static Test suite() throws Exception
+ public static Test suite() throws Exception
{
+ ClassLoader loader = Thread.currentThread().getContextClassLoader();
+ URL url = loader.getResource("messaging/test-destinations-full-service.xml");
+ if (url == null)
+ throw new RuntimeException("test queues not found");
+
Properties props = new Properties();
props.setProperty("ejbRunnerJndiName", "EJBTestRunnerHome");
props.setProperty("encBeanJndiName", "ENCBean");
props.setProperty("encIterations", "1000");
- JBossTestSuite testSuite = new JBossTestSuite(props);
- testSuite.addTestSuite(NamingTests.class);
- return getDeploySetup(testSuite, "naming.jar");
+ JBossTestSuite testSuite = new JBossTestSuite(props);
+ testSuite.addTestSuite(NamingTests.class);
+ return getDeploySetup(testSuite, url+",naming.jar");
}
}
More information about the jboss-cvs-commits
mailing list