This is an automated email from the ASF dual-hosted git repository.
dope pushed a commit to branch cluster
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/cluster by this push:
new f5d77cb add EnvironmentUtils for cluster test
f5d77cb is described below
commit f5d77cbbbb7c0abea8e5310083b2e87873630434
Author: MyXOF <[email protected]>
AuthorDate: Wed Apr 10 13:47:15 2019 +0800
add EnvironmentUtils for cluster test
---
.../cluster/integration/IoTDBMetadataFetchLocallyIT.java | 11 +----------
.../org/apache/iotdb/cluster/qp/ClusterQPExecutorTest.java | 2 +-
.../iotdb/cluster/qp/executor/NonQueryExecutorTest.java | 2 +-
.../org/apache/iotdb/cluster}/utils/EnvironmentUtils.java | 2 +-
.../java/org/apache/iotdb/db/utils/EnvironmentUtils.java | 0
5 files changed, 4 insertions(+), 13 deletions(-)
diff --git
a/cluster/src/test/java/org/apache/iotdb/cluster/integration/IoTDBMetadataFetchLocallyIT.java
b/cluster/src/test/java/org/apache/iotdb/cluster/integration/IoTDBMetadataFetchLocallyIT.java
index 1f3cdb6..a007582 100644
---
a/cluster/src/test/java/org/apache/iotdb/cluster/integration/IoTDBMetadataFetchLocallyIT.java
+++
b/cluster/src/test/java/org/apache/iotdb/cluster/integration/IoTDBMetadataFetchLocallyIT.java
@@ -18,14 +18,11 @@
*/
package org.apache.iotdb.cluster.integration;
-
import java.sql.SQLException;
-import java.util.HashMap;
-import java.util.Map;
import org.apache.iotdb.cluster.config.ClusterConfig;
import org.apache.iotdb.cluster.config.ClusterDescriptor;
import org.apache.iotdb.cluster.entity.Server;
-import org.apache.iotdb.db.utils.EnvironmentUtils;
+import org.apache.iotdb.cluster.utils.EnvironmentUtils;
import org.apache.iotdb.jdbc.Config;
import org.junit.After;
import org.junit.Before;
@@ -65,10 +62,4 @@ public class IoTDBMetadataFetchLocallyIT extends
IoTDBMetadataFetchAbstract{
public void testBatchLocal() throws SQLException {
test(URL, true);
}
-
-
-
-
-
-
}
diff --git
a/cluster/src/test/java/org/apache/iotdb/cluster/qp/ClusterQPExecutorTest.java
b/cluster/src/test/java/org/apache/iotdb/cluster/qp/ClusterQPExecutorTest.java
index b430f02..298dd4d 100644
---
a/cluster/src/test/java/org/apache/iotdb/cluster/qp/ClusterQPExecutorTest.java
+++
b/cluster/src/test/java/org/apache/iotdb/cluster/qp/ClusterQPExecutorTest.java
@@ -26,7 +26,7 @@ import org.apache.iotdb.cluster.config.ClusterConfig;
import org.apache.iotdb.cluster.config.ClusterDescriptor;
import org.apache.iotdb.cluster.qp.executor.NonQueryExecutor;
import org.apache.iotdb.cluster.rpc.service.TSServiceClusterImpl;
-import org.apache.iotdb.db.utils.EnvironmentUtils;
+import org.apache.iotdb.cluster.utils.EnvironmentUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
diff --git
a/cluster/src/test/java/org/apache/iotdb/cluster/qp/executor/NonQueryExecutorTest.java
b/cluster/src/test/java/org/apache/iotdb/cluster/qp/executor/NonQueryExecutorTest.java
index a8d413d..038505f 100644
---
a/cluster/src/test/java/org/apache/iotdb/cluster/qp/executor/NonQueryExecutorTest.java
+++
b/cluster/src/test/java/org/apache/iotdb/cluster/qp/executor/NonQueryExecutorTest.java
@@ -22,13 +22,13 @@ import static org.junit.Assert.assertEquals;
import java.util.Collections;
import org.apache.iotdb.cluster.config.ClusterConfig;
+import org.apache.iotdb.cluster.utils.EnvironmentUtils;
import org.apache.iotdb.db.metadata.MManager;
import org.apache.iotdb.db.qp.QueryProcessor;
import org.apache.iotdb.db.qp.executor.OverflowQPExecutor;
import org.apache.iotdb.db.qp.physical.PhysicalPlan;
import org.apache.iotdb.db.qp.physical.crud.DeletePlan;
import org.apache.iotdb.db.qp.physical.sys.MetadataPlan;
-import org.apache.iotdb.db.utils.EnvironmentUtils;
import org.apache.iotdb.tsfile.common.conf.TSFileConfig;
import org.apache.iotdb.tsfile.file.metadata.enums.CompressionType;
import org.apache.iotdb.tsfile.file.metadata.enums.TSDataType;
diff --git
a/iotdb/src/main/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
b/cluster/src/test/java/org/apache/iotdb/cluster/utils/EnvironmentUtils.java
similarity index 99%
copy from iotdb/src/main/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
copy to
cluster/src/test/java/org/apache/iotdb/cluster/utils/EnvironmentUtils.java
index 581be6a..202b6b4 100644
--- a/iotdb/src/main/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
+++ b/cluster/src/test/java/org/apache/iotdb/cluster/utils/EnvironmentUtils.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.iotdb.db.utils;
+package org.apache.iotdb.cluster.utils;
import java.io.File;
import java.io.IOException;
diff --git
a/iotdb/src/main/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
b/iotdb/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
similarity index 100%
rename from iotdb/src/main/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
rename to iotdb/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java