Repository: kylin
Updated Branches:
  refs/heads/yang-m1 795c6b2bb -> 19d497015


Fix UT


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

Branch: refs/heads/yang-m1
Commit: 19d49701580d600ca826bdadd5cfed31d6ea9c61
Parents: 795c6b2
Author: lidongsjtu <lid...@apache.org>
Authored: Tue May 3 13:58:30 2016 +0800
Committer: lidongsjtu <lid...@apache.org>
Committed: Tue May 3 13:58:30 2016 +0800

----------------------------------------------------------------------
 .../measure/hll/HyperLogLogCounterTest.java     | 25 ++++++++++----------
 1 file changed, 13 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/19d49701/core-metadata/src/test/java/org/apache/kylin/measure/hll/HyperLogLogCounterTest.java
----------------------------------------------------------------------
diff --git 
a/core-metadata/src/test/java/org/apache/kylin/measure/hll/HyperLogLogCounterTest.java
 
b/core-metadata/src/test/java/org/apache/kylin/measure/hll/HyperLogLogCounterTest.java
index 733f70a..be1c00f 100644
--- 
a/core-metadata/src/test/java/org/apache/kylin/measure/hll/HyperLogLogCounterTest.java
+++ 
b/core-metadata/src/test/java/org/apache/kylin/measure/hll/HyperLogLogCounterTest.java
@@ -18,6 +18,7 @@
 
 package org.apache.kylin.measure.hll;
 
+import static junit.framework.TestCase.assertTrue;
 import static org.junit.Assert.assertEquals;
 
 import java.io.IOException;
@@ -46,18 +47,18 @@ public class HyperLogLogCounterTest {
     int errorCount3 = 0;
 
     @Test
-    public void testOneAdd() throws IOException {
-        HyperLogLogPlusCounter hllc = new HyperLogLogPlusCounter(14);
-        HyperLogLogPlusCounter one = new HyperLogLogPlusCounter(14);
-        for (int i = 0; i < 1000000; i++) {
-            one.clear();
-            one.add(rand1.nextInt());
-            hllc.merge(one);
-        }
-        assertTrue(hllc.getCountEstimate() > 1000000 * 0.9);
-    }
-    
-    @Test
+    public void testOneAdd() throws IOException {
+        HyperLogLogPlusCounter hllc = new HyperLogLogPlusCounter(14);
+        HyperLogLogPlusCounter one = new HyperLogLogPlusCounter(14);
+        for (int i = 0; i < 1000000; i++) {
+            one.clear();
+            one.add(rand1.nextInt());
+            hllc.merge(one);
+        }
+        assertTrue(hllc.getCountEstimate() > 1000000 * 0.9);
+    }
+    
+    @Test
     public void testPeekLength() throws IOException {
         HyperLogLogPlusCounter hllc = new HyperLogLogPlusCounter(10);
         HyperLogLogPlusCounter copy = new HyperLogLogPlusCounter(10);

Reply via email to