You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2016/07/25 12:12:52 UTC

[20/50] [abbrv] kylin git commit: KYLIN-1858 bug fix

KYLIN-1858 bug fix


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

Branch: refs/heads/1.5.x-HBase1.x
Commit: 854ec376c4292a762e2402939fb6e229f8a1b8a4
Parents: 2cc0b9c
Author: Hongbin Ma <ma...@apache.org>
Authored: Fri Jul 8 15:38:10 2016 +0800
Committer: Hongbin Ma <ma...@apache.org>
Committed: Fri Jul 8 17:50:46 2016 +0800

----------------------------------------------------------------------
 .../org/apache/kylin/RealizationRegistryTest.java     | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/854ec376/assembly/src/test/java/org/apache/kylin/RealizationRegistryTest.java
----------------------------------------------------------------------
diff --git a/assembly/src/test/java/org/apache/kylin/RealizationRegistryTest.java b/assembly/src/test/java/org/apache/kylin/RealizationRegistryTest.java
index 7449b67..11723c8 100644
--- a/assembly/src/test/java/org/apache/kylin/RealizationRegistryTest.java
+++ b/assembly/src/test/java/org/apache/kylin/RealizationRegistryTest.java
@@ -18,11 +18,6 @@
 
 package org.apache.kylin;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-
-import java.util.Set;
-
 import org.apache.kylin.common.KylinConfig;
 import org.apache.kylin.common.util.LocalFileMetadataTestCase;
 import org.apache.kylin.metadata.realization.RealizationRegistry;
@@ -31,6 +26,10 @@ import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
 
+import java.util.Set;
+
+import static org.junit.Assert.assertEquals;
+
 /**
  */
 public class RealizationRegistryTest extends LocalFileMetadataTestCase {
@@ -48,9 +47,6 @@ public class RealizationRegistryTest extends LocalFileMetadataTestCase {
     public void test() throws Exception {
         final RealizationRegistry registry = RealizationRegistry.getInstance(KylinConfig.getInstanceFromEnv());
         final Set<RealizationType> realizationTypes = registry.getRealizationTypes();
-        assertEquals(RealizationType.values().length, realizationTypes.size());
-        for (RealizationType type : RealizationType.values()) {
-            assertTrue(realizationTypes.contains(type));
-        }
+        assertEquals(RealizationType.values().length - 1, realizationTypes.size());
     }
 }