You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2013/02/26 16:40:53 UTC

svn commit: r1450226 - /activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/broker/SpringTest.java

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();
+    }
+
 }