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 2015/02/12 06:42:53 UTC

[03/50] incubator-kylin git commit: Update test case

Update test case

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

Branch: refs/heads/inverted-index
Commit: 7eb78db0e5b48a5680721ea9ef839a2c04cfcd56
Parents: e590e3e
Author: Shao Feng, Shi <sh...@ebay.com>
Authored: Tue Feb 10 14:47:24 2015 +0800
Committer: Shao Feng, Shi <sh...@ebay.com>
Committed: Tue Feb 10 14:47:24 2015 +0800

----------------------------------------------------------------------
 .../test/java/org/apache/kylin/jdbc/JDBCDriverTest.java | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/7eb78db0/server/src/test/java/org/apache/kylin/jdbc/JDBCDriverTest.java
----------------------------------------------------------------------
diff --git a/server/src/test/java/org/apache/kylin/jdbc/JDBCDriverTest.java b/server/src/test/java/org/apache/kylin/jdbc/JDBCDriverTest.java
index 4f10868..9aa8315 100644
--- a/server/src/test/java/org/apache/kylin/jdbc/JDBCDriverTest.java
+++ b/server/src/test/java/org/apache/kylin/jdbc/JDBCDriverTest.java
@@ -25,12 +25,14 @@ public class JDBCDriverTest extends HBaseMetadataTestCase {
     public static void beforeClass() throws Exception {
         previousSpringProfile = System.getProperty(SPRING_PROFILE_PROPERTY);
         System.setProperty(SPRING_PROFILE_PROPERTY, "testing");
+        staticCreateTestMetadata();
         startJetty();
     }
 
     @AfterClass
     public static void afterClass() throws Exception {
         stopJetty();
+        staticCleanupTestMetadata();
         if (previousSpringProfile == null) {
             System.clearProperty(SPRING_PROFILE_PROPERTY);
         } else {
@@ -38,16 +40,6 @@ public class JDBCDriverTest extends HBaseMetadataTestCase {
         }
     }
 
-    @Before
-    public void setup() throws Exception {
-        this.createTestMetadata();
-    }
-
-    @After
-    public void tearDown() throws Exception {
-        this.cleanupTestMetadata();
-    }
-
     protected static void stopJetty() throws Exception {
         if (server != null)
             server.stop();