Repository: kylin
Updated Branches:
  refs/heads/master 80a2e7abc -> 32d9d23e4


KYLIN-2862 fix UT in RestClientTest


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

Branch: refs/heads/master
Commit: 32d9d23e4c5aac7dfc6d871d7d7f846641d3443a
Parents: 80a2e7a
Author: Billy Liu <billy...@apache.org>
Authored: Sun Sep 10 21:13:03 2017 +0800
Committer: Billy Liu <billy...@apache.org>
Committed: Sun Sep 10 21:13:03 2017 +0800

----------------------------------------------------------------------
 .../kylin/common/restclient/RestClientTest.java  | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/32d9d23e/core-common/src/test/java/org/apache/kylin/common/restclient/RestClientTest.java
----------------------------------------------------------------------
diff --git 
a/core-common/src/test/java/org/apache/kylin/common/restclient/RestClientTest.java
 
b/core-common/src/test/java/org/apache/kylin/common/restclient/RestClientTest.java
index af05e5e..63810ab 100644
--- 
a/core-common/src/test/java/org/apache/kylin/common/restclient/RestClientTest.java
+++ 
b/core-common/src/test/java/org/apache/kylin/common/restclient/RestClientTest.java
@@ -19,16 +19,23 @@
 package org.apache.kylin.common.restclient;
 
 import java.io.IOException;
-import org.junit.Test;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
 
-public class RestClientTest {
+import org.apache.kylin.common.util.LocalFileMetadataTestCase;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
 
+public class RestClientTest extends LocalFileMetadataTestCase {
 
+    @Before
+    public void setUp() throws Exception {
+        this.createTestMetadata();
+    }
 
-    private static final Logger logger = 
LoggerFactory.getLogger(RestClientTest.class);
+    @After
+    public void after() throws Exception {
+        this.cleanupTestMetadata();
+    }
 
     @SuppressWarnings("unused")
     @Test

Reply via email to