This is an automated email from the ASF dual-hosted git repository. zhangliang 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 a2cc35421ec Decouple MySQL dependencies on ShadowRuleBuilderTest (#35211) a2cc35421ec is described below commit a2cc35421ec02491c987dc19c67192cd82660e66 Author: Liang Zhang <zhangli...@apache.org> AuthorDate: Thu Apr 17 14:38:57 2025 +0800 Decouple MySQL dependencies on ShadowRuleBuilderTest (#35211) * Decouple MySQL dependencies on SetDistVariableExecutorTest * Decouple MySQL dependencies on SetDistVariableUpdatableRALBackendHandlerTest * Decouple MySQL dependencies on ConnectionSessionTest * Decouple MySQL dependencies on ShadowRuleBuilderTest --- .../shardingsphere/shadow/rule/builder/ShadowRuleBuilderTest.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/features/shadow/core/src/test/java/org/apache/shardingsphere/shadow/rule/builder/ShadowRuleBuilderTest.java b/features/shadow/core/src/test/java/org/apache/shardingsphere/shadow/rule/builder/ShadowRuleBuilderTest.java index 2abba70df8d..d8621ab6357 100644 --- a/features/shadow/core/src/test/java/org/apache/shardingsphere/shadow/rule/builder/ShadowRuleBuilderTest.java +++ b/features/shadow/core/src/test/java/org/apache/shardingsphere/shadow/rule/builder/ShadowRuleBuilderTest.java @@ -17,9 +17,6 @@ package org.apache.shardingsphere.shadow.rule.builder; -import org.apache.shardingsphere.infra.database.mysql.type.MySQLDatabaseType; -import org.apache.shardingsphere.infra.instance.ComputeNodeInstanceContext; -import org.apache.shardingsphere.infra.metadata.database.resource.ResourceMetaData; import org.apache.shardingsphere.infra.rule.builder.database.DatabaseRuleBuilder; import org.apache.shardingsphere.infra.spi.type.ordered.OrderedSPILoader; import org.apache.shardingsphere.shadow.config.ShadowRuleConfiguration; @@ -39,7 +36,6 @@ class ShadowRuleBuilderTest { void assertBuild() { ShadowRuleConfiguration ruleConfig = new ShadowRuleConfiguration(); DatabaseRuleBuilder builder = OrderedSPILoader.getServices(DatabaseRuleBuilder.class, Collections.singleton(ruleConfig)).get(ruleConfig); - assertThat(builder.build(ruleConfig, "", new MySQLDatabaseType(), mock(ResourceMetaData.class), Collections.emptyList(), - mock(ComputeNodeInstanceContext.class)), instanceOf(ShadowRule.class)); + assertThat(builder.build(ruleConfig, "", mock(), mock(), Collections.emptyList(), mock()), instanceOf(ShadowRule.class)); } }