You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by lu...@apache.org on 2015/01/15 13:26:18 UTC

[02/50] [abbrv] incubator-kylin git commit: fix

fix


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/84c9c356
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/84c9c356
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/84c9c356

Branch: refs/heads/inverted-index
Commit: 84c9c3568b8f893ae7203f575fb5275ef9b554cb
Parents: c6cd9f7
Author: qianhao.zhou <qi...@ebay.com>
Authored: Tue Jan 13 09:58:31 2015 +0800
Committer: qianhao.zhou <qi...@ebay.com>
Committed: Tue Jan 13 09:58:31 2015 +0800

----------------------------------------------------------------------
 .../com/kylinolap/job/BuildCubeWithEngineTest.java    | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/84c9c356/job/src/test/java/com/kylinolap/job/BuildCubeWithEngineTest.java
----------------------------------------------------------------------
diff --git a/job/src/test/java/com/kylinolap/job/BuildCubeWithEngineTest.java b/job/src/test/java/com/kylinolap/job/BuildCubeWithEngineTest.java
index a9d17b9..7e8120c 100644
--- a/job/src/test/java/com/kylinolap/job/BuildCubeWithEngineTest.java
+++ b/job/src/test/java/com/kylinolap/job/BuildCubeWithEngineTest.java
@@ -86,8 +86,7 @@ public class BuildCubeWithEngineTest {
 
     }
 
-    @After
-    public void after() throws Exception {
+    private void backup() throws Exception {
         int exitCode = cleanupOldCubes();
         if (exitCode == 0) {
             exportHBaseData();
@@ -97,7 +96,13 @@ public class BuildCubeWithEngineTest {
     }
 
     @Test
-    public void testInner() throws Exception {
+    public void test() throws Exception {
+        testInner();
+        testLeft();
+        backup();
+    }
+
+    private void testInner() throws Exception {
         DeployUtil.prepareTestData("inner", "test_kylin_cube_with_slr_empty");
 
 
@@ -121,8 +126,7 @@ public class BuildCubeWithEngineTest {
         }
     }
 
-    @Test
-    public void testLeft() throws Exception {
+    private void testLeft() throws Exception {
         DeployUtil.prepareTestData("left", "test_kylin_cube_with_slr_left_join_empty");
         
         String[] testCase = new String[]{