You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2017/09/15 14:43:02 UTC
[42/48] kylin git commit: KYLIN-2862 fix UT in RestClientTest
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/ranger
Commit: 32d9d23e4c5aac7dfc6d871d7d7f846641d3443a
Parents: 80a2e7a
Author: Billy Liu <bi...@apache.org>
Authored: Sun Sep 10 21:13:03 2017 +0800
Committer: Billy Liu <bi...@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