Make dir name static


Project: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-hivemall/commit/1f3df54c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/tree/1f3df54c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/diff/1f3df54c

Branch: refs/heads/JIRA-22/pr-336
Commit: 1f3df54c0183a61390f58b94f58c12e531754a09
Parents: 33eab26
Author: amaya <g...@sapphire.in.net>
Authored: Fri Nov 18 01:57:31 2016 +0900
Committer: amaya <g...@sapphire.in.net>
Committed: Fri Nov 18 01:57:31 2016 +0900

----------------------------------------------------------------------
 .../hivemall/systemtest/runner/SystemTestCommonInfo.java  | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/1f3df54c/systemtest/src/main/java/hivemall/systemtest/runner/SystemTestCommonInfo.java
----------------------------------------------------------------------
diff --git 
a/systemtest/src/main/java/hivemall/systemtest/runner/SystemTestCommonInfo.java 
b/systemtest/src/main/java/hivemall/systemtest/runner/SystemTestCommonInfo.java
index 60292fa..82b433f 100644
--- 
a/systemtest/src/main/java/hivemall/systemtest/runner/SystemTestCommonInfo.java
+++ 
b/systemtest/src/main/java/hivemall/systemtest/runner/SystemTestCommonInfo.java
@@ -21,6 +21,10 @@ package hivemall.systemtest.runner;
 import javax.annotation.Nonnull;
 
 public class SystemTestCommonInfo {
+    private static final String CASE = "case";
+    private static final String ANSWER = "answer";
+    private static final String INIT = "init";
+
     @Nonnull
     public final String baseDir;
     @Nonnull
@@ -34,9 +38,9 @@ public class SystemTestCommonInfo {
 
     public SystemTestCommonInfo(@Nonnull final Class<?> clazz) {
         baseDir = clazz.getName().replace(".", "/");
-        caseDir = baseDir + "/case/";
-        answerDir = baseDir + "/answer/";
-        initDir = baseDir + "/init/";
+        caseDir = baseDir + "/" + CASE + "/";
+        answerDir = baseDir + "/" + ANSWER + "/";
+        initDir = baseDir + "/" + INIT + "/";
         dbName = clazz.getName().replace(".", "_").toLowerCase();
     }
 }

Reply via email to