[jboss-cvs] joramtests/src/main/java/org/objectweb/jtests/jms/framework ...
Clebert Suconic
csuconic at jboss.com
Thu Jul 19 17:20:08 EDT 2007
User: csuconic
Date: 07/07/19 17:20:08
Modified: src/main/java/org/objectweb/jtests/jms/framework
JMSTestCase.java
Log:
Fixing Admin factory for JBossMQ, as the AdminFactory wouldn't work with JBossMQ.
Revision Changes Path
1.2 +6 -2 joramtests/src/main/java/org/objectweb/jtests/jms/framework/JMSTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: JMSTestCase.java
===================================================================
RCS file: /cvsroot/jboss/joramtests/src/main/java/org/objectweb/jtests/jms/framework/JMSTestCase.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- JMSTestCase.java 29 Mar 2007 04:28:35 -0000 1.1
+++ JMSTestCase.java 19 Jul 2007 21:20:08 -0000 1.2
@@ -39,10 +39,12 @@
* Every Test Case for JMS should extend this class instead of <code>junit.framework.TestCase</code>
*
* @author Jeff Mesnil (jmesnil at inrialpes.fr)
- * @version $Id: JMSTestCase.java,v 1.1 2007/03/29 04:28:35 starksm Exp $
+ * @version $Id: JMSTestCase.java,v 1.2 2007/07/19 21:20:08 csuconic Exp $
*/
public class JMSTestCase extends TestCase
{
+ private static final String PROP_FILE_NAME = "provider.properties";
+
/**
* Fails a test with an exception which will be used for a message.
*
@@ -81,7 +83,9 @@
protected Properties getProviderProperties()
throws IOException
{
- return System.getProperties();
+ Properties props = new Properties();
+ props.load(ClassLoader.getSystemResourceAsStream(PROP_FILE_NAME));
+ return props;
}
}
More information about the jboss-cvs-commits
mailing list