You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by bi...@apache.org on 2012/03/13 16:20:32 UTC

svn commit: r1300181 - /incubator/accumulo/branches/1.4/src/start/src/test/java/org/apache/accumulo/start/Test.java

Author: billie
Date: Tue Mar 13 15:20:32 2012
New Revision: 1300181

URL: http://svn.apache.org/viewvc?rev=1300181&view=rev
Log:
ACCUMULO-390 fixed test reference to example file

Modified:
    incubator/accumulo/branches/1.4/src/start/src/test/java/org/apache/accumulo/start/Test.java

Modified: incubator/accumulo/branches/1.4/src/start/src/test/java/org/apache/accumulo/start/Test.java
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/start/src/test/java/org/apache/accumulo/start/Test.java?rev=1300181&r1=1300180&r2=1300181&view=diff
==============================================================================
--- incubator/accumulo/branches/1.4/src/start/src/test/java/org/apache/accumulo/start/Test.java (original)
+++ incubator/accumulo/branches/1.4/src/start/src/test/java/org/apache/accumulo/start/Test.java Tue Mar 13 15:20:32 2012
@@ -181,7 +181,8 @@ public class Test extends TestCase {
   
   public void testChangingDirectory() throws Exception {
     String configFile = System.getProperty("org.apache.accumulo.config.file", "accumulo-site.xml");
-    String SITE_CONF = System.getenv("ACCUMULO_HOME") + "/conf/" + configFile;
+    String CONF_DIR = System.getenv("ACCUMULO_HOME") + "/conf/";
+    String SITE_CONF = CONF_DIR + configFile;
     File oldConf = new File(SITE_CONF);
     boolean exists = oldConf.exists();
     String siteBkp = SITE_CONF + ".bkp";
@@ -202,7 +203,7 @@ public class Test extends TestCase {
       if (exists)
         d = db.parse(siteBkp);
       else
-        d = db.parse(new File(SITE_CONF + ".512MBBstandalone-example"));
+        d = db.parse(new File(CONF_DIR + "examples/512MB/standalone/" + configFile));
       
       NodeList pnodes = d.getElementsByTagName("property");
       for (int i = pnodes.getLength() - 1; i >= 0; i--) {