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

menghaoran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 1244189  Remove useless code. (#12111)
1244189 is described below

commit 1244189304c39ed113be868edff86cb06ca03ffe
Author: Guocheng Tang <[email protected]>
AuthorDate: Tue Aug 31 10:56:31 2021 +0800

    Remove useless code. (#12111)
---
 .../env/database/DatabaseEnvironmentManager.java   |  6 ---
 .../initialization/DatabaseSQLInitialization.java  | 46 ----------------
 .../type/DefaultDatabaseSQLInitialization.java     | 58 --------------------
 .../type/H2DatabaseSQLInitialization.java          | 57 --------------------
 .../type/MariaDBDatabaseSQLInitialization.java     | 43 ---------------
 .../type/MySQLDatabaseSQLInitialization.java       | 43 ---------------
 .../type/OracleDatabaseSQLInitialization.java      | 43 ---------------
 .../type/PostgreSQLDatabaseSQLInitialization.java  | 62 ----------------------
 .../type/SQLServerDatabaseSQLInitialization.java   | 43 ---------------
 ...tabase.initialization.DatabaseSQLInitialization | 23 --------
 10 files changed, 424 deletions(-)

diff --git 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/DatabaseEnvironmentManager.java
 
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/DatabaseEnvironmentManager.java
index a47b1d4..8c77227 100644
--- 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/DatabaseEnvironmentManager.java
+++ 
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/DatabaseEnvironmentManager.java
@@ -19,9 +19,7 @@ package 
org.apache.shardingsphere.test.integration.env.database;
 
 import lombok.AccessLevel;
 import lombok.NoArgsConstructor;
-import org.apache.shardingsphere.spi.ShardingSphereServiceLoader;
 import org.apache.shardingsphere.test.integration.env.EnvironmentPath;
-import 
org.apache.shardingsphere.test.integration.env.database.initialization.DatabaseSQLInitialization;
 
 import javax.xml.bind.JAXBContext;
 import javax.xml.bind.JAXBException;
@@ -35,10 +33,6 @@ import java.util.Collection;
 @NoArgsConstructor(access = AccessLevel.PRIVATE)
 public final class DatabaseEnvironmentManager {
     
-    static {
-        ShardingSphereServiceLoader.register(DatabaseSQLInitialization.class);
-    }
-    
     /**
      * Get database names.
      *
diff --git 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/DatabaseSQLInitialization.java
 
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/DatabaseSQLInitialization.java
deleted file mode 100644
index 4251408..0000000
--- 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/DatabaseSQLInitialization.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.integration.env.database.initialization;
-
-import org.apache.shardingsphere.infra.database.type.DatabaseType;
-import org.apache.shardingsphere.spi.typed.TypedSPI;
-
-import javax.sql.DataSource;
-import javax.xml.bind.JAXBException;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.Map;
-
-/**
- * Database SQL initialization.
- */
-public interface DatabaseSQLInitialization extends TypedSPI {
-    
-    /**
-     * Execute init SQLs.
-     *
-     * @param scenario scenario
-     * @param databaseType database type
-     * @param dataSourceMap datasource map
-     *
-     * @throws IOException IO exception
-     * @throws SQLException SQL exception
-     * @throws JAXBException JAXB exception
-     */
-    void executeInitSQLs(String scenario, DatabaseType databaseType, 
Map<String, DataSource> dataSourceMap) throws IOException, SQLException, 
JAXBException;
-}
diff --git 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/DefaultDatabaseSQLInitialization.java
 
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/DefaultDatabaseSQLInitialization.java
deleted file mode 100644
index 874eba1..0000000
--- 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/DefaultDatabaseSQLInitialization.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package 
org.apache.shardingsphere.test.integration.env.database.initialization.type;
-
-import org.apache.shardingsphere.infra.database.type.DatabaseType;
-import org.apache.shardingsphere.test.integration.env.EnvironmentPath;
-import org.h2.tools.RunScript;
-
-import javax.sql.DataSource;
-import java.io.File;
-import java.io.FileReader;
-import java.io.IOException;
-import java.sql.Connection;
-import java.sql.SQLException;
-import java.util.Map;
-import java.util.Map.Entry;
-
-/**
- * Database SQL initialization for Default.
- */
-public abstract class DefaultDatabaseSQLInitialization {
-    
-    /**
-     * Execute init SQLs.
-     *
-     * @param scenario scenario
-     * @param databaseType database type
-     * @param dataSourceMap datasource map
-     *
-     * @throws IOException IO exception
-     * @throws SQLException SQL exception
-     */
-    public void executeInitSQLs(final String scenario, final DatabaseType 
databaseType, final Map<String, DataSource> dataSourceMap) throws IOException, 
SQLException {
-        File file = new File(EnvironmentPath.getInitSQLFile(databaseType, 
scenario));
-        // TODO use multiple threads to improve performance
-        for (Entry<String, DataSource> each : dataSourceMap.entrySet()) {
-            try (Connection connection = each.getValue().getConnection();
-                 FileReader reader = new FileReader(file)) {
-                RunScript.execute(connection, reader);
-            }
-        }
-    }
-}
diff --git 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/H2DatabaseSQLInitialization.java
 
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/H2DatabaseSQLInitialization.java
deleted file mode 100644
index a192ee3..0000000
--- 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/H2DatabaseSQLInitialization.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package 
org.apache.shardingsphere.test.integration.env.database.initialization.type;
-
-import org.apache.shardingsphere.infra.database.type.DatabaseType;
-import org.apache.shardingsphere.infra.database.type.dialect.H2DatabaseType;
-import org.apache.shardingsphere.test.integration.env.EnvironmentPath;
-import 
org.apache.shardingsphere.test.integration.env.database.initialization.DatabaseSQLInitialization;
-import org.h2.tools.RunScript;
-
-import javax.sql.DataSource;
-import javax.xml.bind.JAXBException;
-import java.io.File;
-import java.io.FileReader;
-import java.io.IOException;
-import java.sql.Connection;
-import java.sql.SQLException;
-import java.util.Map;
-import java.util.Map.Entry;
-
-/**
- * Database SQL initialization for H2.
- */
-public final class H2DatabaseSQLInitialization implements 
DatabaseSQLInitialization {
-    
-    @Override
-    public void executeInitSQLs(final String scenario, final DatabaseType 
databaseType, final Map<String, DataSource> dataSourceMap) throws IOException, 
JAXBException, SQLException {
-        File file = new File(EnvironmentPath.getInitSQLFile(databaseType, 
scenario));
-        // TODO use multiple threads to improve performance
-        for (Entry<String, DataSource> each : dataSourceMap.entrySet()) {
-            try (Connection connection = each.getValue().getConnection();
-                 FileReader reader = new FileReader(file)) {
-                RunScript.execute(connection, reader);
-            }
-        }
-    }
-    
-    @Override
-    public String getType() {
-        return new H2DatabaseType().getName();
-    }
-}
diff --git 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/MariaDBDatabaseSQLInitialization.java
 
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/MariaDBDatabaseSQLInitialization.java
deleted file mode 100644
index 9e3ce40..0000000
--- 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/MariaDBDatabaseSQLInitialization.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package 
org.apache.shardingsphere.test.integration.env.database.initialization.type;
-
-import org.apache.shardingsphere.infra.database.type.DatabaseType;
-import 
org.apache.shardingsphere.infra.database.type.dialect.MariaDBDatabaseType;
-import 
org.apache.shardingsphere.test.integration.env.database.initialization.DatabaseSQLInitialization;
-
-import javax.sql.DataSource;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.Map;
-
-/**
- * Database SQL initialization for MariaDB.
- */
-public final class MariaDBDatabaseSQLInitialization extends 
DefaultDatabaseSQLInitialization implements DatabaseSQLInitialization {
-    
-    @Override
-    public void executeInitSQLs(final String scenario, final DatabaseType 
databaseType, final Map<String, DataSource> dataSourceMap) throws IOException, 
SQLException {
-        super.executeInitSQLs(scenario, databaseType, dataSourceMap);
-    }
-    
-    @Override
-    public String getType() {
-        return new MariaDBDatabaseType().getName();
-    }
-}
diff --git 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/MySQLDatabaseSQLInitialization.java
 
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/MySQLDatabaseSQLInitialization.java
deleted file mode 100644
index 9f58407..0000000
--- 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/MySQLDatabaseSQLInitialization.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package 
org.apache.shardingsphere.test.integration.env.database.initialization.type;
-
-import org.apache.shardingsphere.infra.database.type.DatabaseType;
-import org.apache.shardingsphere.infra.database.type.dialect.MySQLDatabaseType;
-import 
org.apache.shardingsphere.test.integration.env.database.initialization.DatabaseSQLInitialization;
-
-import javax.sql.DataSource;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.Map;
-
-/**
- * Database SQL initialization for MySQL.
- */
-public final class MySQLDatabaseSQLInitialization extends 
DefaultDatabaseSQLInitialization implements DatabaseSQLInitialization {
-    
-    @Override
-    public void executeInitSQLs(final String scenario, final DatabaseType 
databaseType, final Map<String, DataSource> dataSourceMap) throws IOException, 
SQLException {
-        super.executeInitSQLs(scenario, databaseType, dataSourceMap);
-    }
-    
-    @Override
-    public String getType() {
-        return new MySQLDatabaseType().getName();
-    }
-}
diff --git 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/OracleDatabaseSQLInitialization.java
 
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/OracleDatabaseSQLInitialization.java
deleted file mode 100644
index c5fac32..0000000
--- 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/OracleDatabaseSQLInitialization.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package 
org.apache.shardingsphere.test.integration.env.database.initialization.type;
-
-import org.apache.shardingsphere.infra.database.type.DatabaseType;
-import 
org.apache.shardingsphere.infra.database.type.dialect.OracleDatabaseType;
-import 
org.apache.shardingsphere.test.integration.env.database.initialization.DatabaseSQLInitialization;
-
-import javax.sql.DataSource;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.Map;
-
-/**
- * Database SQL initialization for Oracle.
- */
-public final class OracleDatabaseSQLInitialization extends 
DefaultDatabaseSQLInitialization implements DatabaseSQLInitialization {
-    
-    @Override
-    public void executeInitSQLs(final String scenario, final DatabaseType 
databaseType, final Map<String, DataSource> dataSourceMap) throws IOException, 
SQLException {
-        super.executeInitSQLs(scenario, databaseType, dataSourceMap);
-    }
-    
-    @Override
-    public String getType() {
-        return new OracleDatabaseType().getName();
-    }
-}
diff --git 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/PostgreSQLDatabaseSQLInitialization.java
 
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/PostgreSQLDatabaseSQLInitialization.java
deleted file mode 100644
index 1956e8a..0000000
--- 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/PostgreSQLDatabaseSQLInitialization.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package 
org.apache.shardingsphere.test.integration.env.database.initialization.type;
-
-import org.apache.shardingsphere.infra.database.type.DatabaseType;
-import 
org.apache.shardingsphere.infra.database.type.dialect.PostgreSQLDatabaseType;
-import org.apache.shardingsphere.test.integration.env.EnvironmentPath;
-import 
org.apache.shardingsphere.test.integration.env.database.initialization.DatabaseSQLInitialization;
-import org.h2.tools.RunScript;
-
-import javax.sql.DataSource;
-import javax.xml.bind.JAXBException;
-import java.io.File;
-import java.io.FileReader;
-import java.io.IOException;
-import java.sql.Connection;
-import java.sql.SQLException;
-import java.sql.Statement;
-import java.util.Map;
-import java.util.Map.Entry;
-
-/**
- * Database SQL initialization for PostgreSQL.
- */
-public final class PostgreSQLDatabaseSQLInitialization implements 
DatabaseSQLInitialization {
-    
-    @Override
-    public void executeInitSQLs(final String scenario, final DatabaseType 
databaseType, final Map<String, DataSource> dataSourceMap) throws IOException, 
JAXBException, SQLException {
-        File file = new File(EnvironmentPath.getInitSQLFile(databaseType, 
scenario));
-        for (Entry<String, DataSource> each : dataSourceMap.entrySet()) {
-            try (Connection connection = each.getValue().getConnection();
-                 Statement statement = connection.createStatement()) {
-                statement.execute(String.format("SELECT pg_terminate_backend 
(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = 
'%s';", each));
-                statement.execute(String.format("DROP DATABASE IF EXISTS %s;", 
each.getKey()));
-                statement.execute(String.format("CREATE DATABASE %s;", 
each.getKey()));
-            }
-            try (Connection connection = each.getValue().getConnection(); 
FileReader reader = new FileReader(file)) {
-                RunScript.execute(connection, reader);
-            }
-        }
-    }
-    
-    @Override
-    public String getType() {
-        return new PostgreSQLDatabaseType().getName();
-    }
-}
diff --git 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/SQLServerDatabaseSQLInitialization.java
 
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/SQLServerDatabaseSQLInitialization.java
deleted file mode 100644
index 3476134..0000000
--- 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/java/org/apache/shardingsphere/test/integration/env/database/initialization/type/SQLServerDatabaseSQLInitialization.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package 
org.apache.shardingsphere.test.integration.env.database.initialization.type;
-
-import org.apache.shardingsphere.infra.database.type.DatabaseType;
-import 
org.apache.shardingsphere.infra.database.type.dialect.SQLServerDatabaseType;
-import 
org.apache.shardingsphere.test.integration.env.database.initialization.DatabaseSQLInitialization;
-
-import javax.sql.DataSource;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.Map;
-
-/**
- * Database SQL initialization for SQLServer.
- */
-public final class SQLServerDatabaseSQLInitialization extends 
DefaultDatabaseSQLInitialization implements DatabaseSQLInitialization {
-    
-    @Override
-    public void executeInitSQLs(final String scenario, final DatabaseType 
databaseType, final Map<String, DataSource> dataSourceMap) throws IOException, 
SQLException {
-        super.executeInitSQLs(scenario, databaseType, dataSourceMap);
-    }
-    
-    @Override
-    public String getType() {
-        return new SQLServerDatabaseType().getName();
-    }
-}
diff --git 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/resources/META-INF/services/org.apache.shardingsphere.test.integration.env.database.initialization.DatabaseSQLInitialization
 
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/resources/META-INF/services/org.apache.shardingsphere.test.integration.env.database.initialization.DatabaseSQLInitialization
deleted file mode 100644
index 5dfd52f..0000000
--- 
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-fixture/src/test/resources/META-INF/services/org.apache.shardingsphere.test.integration.env.database.initialization.DatabaseSQLInitialization
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-org.apache.shardingsphere.test.integration.env.database.initialization.type.H2DatabaseSQLInitialization
-org.apache.shardingsphere.test.integration.env.database.initialization.type.MariaDBDatabaseSQLInitialization
-org.apache.shardingsphere.test.integration.env.database.initialization.type.MySQLDatabaseSQLInitialization
-org.apache.shardingsphere.test.integration.env.database.initialization.type.OracleDatabaseSQLInitialization
-org.apache.shardingsphere.test.integration.env.database.initialization.type.PostgreSQLDatabaseSQLInitialization
-org.apache.shardingsphere.test.integration.env.database.initialization.type.SQLServerDatabaseSQLInitialization

Reply via email to