kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lid...@apache.org
Subject kylin git commit: KYLIN-1725 Fix UT failures
Date Tue, 24 May 2016 05:56:40 GMT
Repository: kylin
Updated Branches:
  refs/heads/master 7397bc57d -> eb58f4f41


KYLIN-1725 Fix UT failures


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

Branch: refs/heads/master
Commit: eb58f4f4119e67f39052f0681674b1b3bc52e824
Parents: 7397bc5
Author: lidongsjtu <lidong@apache.org>
Authored: Tue May 24 13:56:34 2016 +0800
Committer: lidongsjtu <lidong@apache.org>
Committed: Tue May 24 13:56:34 2016 +0800

----------------------------------------------------------------------
 .../storage/translate/ColumnValueRangeTest.java    | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/eb58f4f4/core-storage/src/test/java/org/apache/kylin/storage/translate/ColumnValueRangeTest.java
----------------------------------------------------------------------
diff --git a/core-storage/src/test/java/org/apache/kylin/storage/translate/ColumnValueRangeTest.java
b/core-storage/src/test/java/org/apache/kylin/storage/translate/ColumnValueRangeTest.java
index 37f928d..4dd769f 100644
--- a/core-storage/src/test/java/org/apache/kylin/storage/translate/ColumnValueRangeTest.java
+++ b/core-storage/src/test/java/org/apache/kylin/storage/translate/ColumnValueRangeTest.java
@@ -25,15 +25,28 @@ import java.util.HashSet;
 import java.util.Set;
 
 import org.apache.kylin.common.util.Dictionary;
+import org.apache.kylin.common.util.LocalFileMetadataTestCase;
 import org.apache.kylin.dict.StringBytesConverter;
 import org.apache.kylin.dict.TrieDictionaryBuilder;
 import org.apache.kylin.metadata.filter.TupleFilter.FilterOperatorEnum;
 import org.apache.kylin.metadata.model.ColumnDesc;
 import org.apache.kylin.metadata.model.TableDesc;
 import org.apache.kylin.metadata.model.TblColRef;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
 import org.junit.Test;
 
-public class ColumnValueRangeTest {
+public class ColumnValueRangeTest extends LocalFileMetadataTestCase {
+
+    @BeforeClass
+    public static void setUp() throws Exception {
+        staticCreateTestMetadata();
+    }
+
+    @AfterClass
+    public static void after() throws Exception {
+        staticCleanupTestMetadata();
+    }
 
     @Test
     public void testPreEvaluateWithDict() {
@@ -79,7 +92,7 @@ public class ColumnValueRangeTest {
             assertEquals("CN", r4.getBeginValue());
             assertEquals(null, r4.getEndValue());
         }
-        
+
         // ever false check
         {
             ColumnValueRange r2 = new ColumnValueRange(col, set("UT"), FilterOperatorEnum.GTE);


Mime
View raw message