activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1450226 - /activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/broker/SpringTest.java
Date Tue, 26 Feb 2013 15:40:53 GMT
Author: gtully
Date: Tue Feb 26 15:40:53 2013
New Revision: 1450226

URL: http://svn.apache.org/r1450226
Log:
ensure test can find basedir

Modified:
    activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/broker/SpringTest.java

Modified: activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/broker/SpringTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/broker/SpringTest.java?rev=1450226&r1=1450225&r2=1450226&view=diff
==============================================================================
--- activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/broker/SpringTest.java
(original)
+++ activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/broker/SpringTest.java
Tue Feb 26 15:40:53 2013
@@ -17,6 +17,7 @@
 
 package org.apache.activemq.broker;
 
+import java.io.File;
 import java.util.Iterator;
 import java.util.List;
 
@@ -93,4 +94,12 @@ public class SpringTest extends TestCase
         }
     }
 
+    protected void setUp() throws Exception {
+        if (System.getProperty("basedir") == null) {
+            File file = new File(".");
+            System.setProperty("basedir", file.getAbsolutePath());
+        }
+        super.setUp();
+    }
+
 }



Mime
View raw message