You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2022/11/08 12:29:10 UTC

[iotdb] 01/01: Change initBeforeClass to initBeforeTest

This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch ChangeIT
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 9608d714498b9b349cdf9d60f053636c17095b51
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Tue Nov 8 20:28:39 2022 +0800

    Change initBeforeClass to initBeforeTest
---
 .../org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValues2IT.java   | 4 ++--
 .../org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValues3IT.java   | 4 ++--
 .../org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValues4IT.java   | 4 ++--
 .../org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValuesIT.java    | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValues2IT.java b/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValues2IT.java
index 8087a021b9..9b85b34e37 100644
--- a/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValues2IT.java
+++ b/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValues2IT.java
@@ -49,12 +49,12 @@ public class IoTDBInsertAlignedValues2IT {
     autoCreateSchemaEnabled = ConfigFactory.getConfig().isAutoCreateSchemaEnabled();
     ConfigFactory.getConfig().setAutoCreateSchemaEnabled(true);
     ConfigFactory.getConfig().setMaxNumberOfPointsInPage(2);
-    EnvFactory.getEnv().initBeforeClass();
+    EnvFactory.getEnv().initBeforeTest();
   }
 
   @After
   public void tearDown() throws Exception {
-    EnvFactory.getEnv().cleanAfterClass();
+    EnvFactory.getEnv().cleanAfterTest();
     ConfigFactory.getConfig().setAutoCreateSchemaEnabled(autoCreateSchemaEnabled);
     ConfigFactory.getConfig().setMaxNumberOfPointsInPage(numOfPointsPerPage);
   }
diff --git a/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValues3IT.java b/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValues3IT.java
index 22f298c78f..1cc17a7b98 100644
--- a/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValues3IT.java
+++ b/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValues3IT.java
@@ -49,12 +49,12 @@ public class IoTDBInsertAlignedValues3IT {
     autoCreateSchemaEnabled = ConfigFactory.getConfig().isAutoCreateSchemaEnabled();
     ConfigFactory.getConfig().setAutoCreateSchemaEnabled(true);
     ConfigFactory.getConfig().setMaxNumberOfPointsInPage(4);
-    EnvFactory.getEnv().initBeforeClass();
+    EnvFactory.getEnv().initBeforeTest();
   }
 
   @After
   public void tearDown() throws Exception {
-    EnvFactory.getEnv().cleanAfterClass();
+    EnvFactory.getEnv().cleanAfterTest();
     ConfigFactory.getConfig().setAutoCreateSchemaEnabled(autoCreateSchemaEnabled);
     ConfigFactory.getConfig().setMaxNumberOfPointsInPage(numOfPointsPerPage);
   }
diff --git a/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValues4IT.java b/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValues4IT.java
index 4799a791bc..cfdad3529d 100644
--- a/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValues4IT.java
+++ b/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValues4IT.java
@@ -48,12 +48,12 @@ public class IoTDBInsertAlignedValues4IT {
     primitiveArraySize = ConfigFactory.getConfig().getPrimitiveArraySize();
     ConfigFactory.getConfig().setAutoCreateSchemaEnabled(true);
     ConfigFactory.getConfig().setPrimitiveArraySize(2);
-    EnvFactory.getEnv().initBeforeClass();
+    EnvFactory.getEnv().initBeforeTest();
   }
 
   @After
   public void tearDown() throws Exception {
-    EnvFactory.getEnv().cleanAfterClass();
+    EnvFactory.getEnv().cleanAfterTest();
     ConfigFactory.getConfig().setAutoCreateSchemaEnabled(autoCreateSchemaEnabled);
     ConfigFactory.getConfig().setPrimitiveArraySize(primitiveArraySize);
   }
diff --git a/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValuesIT.java b/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValuesIT.java
index d2683d06e6..f12e6bae7f 100644
--- a/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValuesIT.java
+++ b/integration-test/src/test/java/org/apache/iotdb/db/it/aligned/IoTDBInsertAlignedValuesIT.java
@@ -51,12 +51,12 @@ public class IoTDBInsertAlignedValuesIT {
   public void setUp() throws Exception {
     autoCreateSchemaEnabled = ConfigFactory.getConfig().isAutoCreateSchemaEnabled();
     ConfigFactory.getConfig().setAutoCreateSchemaEnabled(true);
-    EnvFactory.getEnv().initBeforeClass();
+    EnvFactory.getEnv().initBeforeTest();
   }
 
   @After
   public void tearDown() throws Exception {
-    EnvFactory.getEnv().cleanAfterClass();
+    EnvFactory.getEnv().cleanAfterTest();
     ConfigFactory.getConfig().setAutoCreateSchemaEnabled(autoCreateSchemaEnabled);
   }