From a1c98377e483bb14dacc25d3e4666dfde0cab8e4 Mon Sep 17 00:00:00 2001 From: Liang Zhang Date: Mon, 16 Dec 2024 19:41:40 +0800 Subject: [PATCH] Remove useless field on ShardingInsertSupportedCheckerTest (#34081) * Add ShardingSphereDatabaseDataTest * Add ShardingSphereDatabaseDataTest * Remove useless field on ShardingInsertSupportedCheckerTest --- .../checker/sql/ddl/ShardingInsertSupportedCheckerTest.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/checker/sql/ddl/ShardingInsertSupportedCheckerTest.java b/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/checker/sql/ddl/ShardingInsertSupportedCheckerTest.java index da9a6cebc883b..8b8df02f57b60 100644 --- a/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/checker/sql/ddl/ShardingInsertSupportedCheckerTest.java +++ b/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/checker/sql/ddl/ShardingInsertSupportedCheckerTest.java @@ -19,10 +19,8 @@ import org.apache.shardingsphere.infra.binder.context.segment.table.TablesContext; import org.apache.shardingsphere.infra.binder.context.statement.dml.InsertStatementContext; -import org.apache.shardingsphere.infra.database.core.type.DatabaseType; import org.apache.shardingsphere.infra.metadata.ShardingSphereMetaData; import org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase; -import org.apache.shardingsphere.infra.spi.type.typed.TypedSPILoader; import org.apache.shardingsphere.sharding.checker.sql.dml.ShardingInsertSupportedChecker; import org.apache.shardingsphere.sharding.exception.syntax.DMLWithMultipleShardingTablesException; import org.apache.shardingsphere.sharding.exception.syntax.InsertSelectTableViolationException; @@ -62,8 +60,6 @@ @ExtendWith(MockitoExtension.class) class ShardingInsertSupportedCheckerTest { - private final DatabaseType databaseType = TypedSPILoader.getService(DatabaseType.class, "FIXTURE"); - @Mock private ShardingRule rule;