ensure test can find basedir

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1450226 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2013-02-26 15:40:53 +00:00
parent ef1d254e34
commit 4d9f7080d4
1 changed files with 9 additions and 0 deletions

View File

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