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 f1375b1a04d Decouple MySQL dependencies on DatabaseRulesBuilderTest 
(#35208)
f1375b1a04d is described below

commit f1375b1a04d333fce7d504f8610418382f5da559
Author: Liang Zhang <zhangli...@apache.org>
AuthorDate: Thu Apr 17 14:08:50 2025 +0800

    Decouple MySQL dependencies on DatabaseRulesBuilderTest (#35208)
---
 .../infra/rule/builder/database/DatabaseRulesBuilderTest.java     | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git 
a/infra/common/src/test/java/org/apache/shardingsphere/infra/rule/builder/database/DatabaseRulesBuilderTest.java
 
b/infra/common/src/test/java/org/apache/shardingsphere/infra/rule/builder/database/DatabaseRulesBuilderTest.java
index 39cc139e3f9..a4fc265d45f 100644
--- 
a/infra/common/src/test/java/org/apache/shardingsphere/infra/rule/builder/database/DatabaseRulesBuilderTest.java
+++ 
b/infra/common/src/test/java/org/apache/shardingsphere/infra/rule/builder/database/DatabaseRulesBuilderTest.java
@@ -18,11 +18,8 @@
 package org.apache.shardingsphere.infra.rule.builder.database;
 
 import 
org.apache.shardingsphere.infra.config.database.impl.DataSourceProvidedDatabaseConfiguration;
-import org.apache.shardingsphere.infra.database.mysql.type.MySQLDatabaseType;
 import org.apache.shardingsphere.infra.fixture.FixtureRule;
 import org.apache.shardingsphere.infra.fixture.FixtureRuleConfiguration;
-import org.apache.shardingsphere.infra.instance.ComputeNodeInstanceContext;
-import 
org.apache.shardingsphere.infra.metadata.database.resource.ResourceMetaData;
 import org.apache.shardingsphere.infra.rule.ShardingSphereRule;
 import org.junit.jupiter.api.Test;
 
@@ -38,9 +35,8 @@ class DatabaseRulesBuilderTest {
     
     @Test
     void assertBuild() {
-        Iterator<ShardingSphereRule> actual = 
DatabaseRulesBuilder.build("foo_db", new MySQLDatabaseType(),
-                new 
DataSourceProvidedDatabaseConfiguration(Collections.emptyMap(), 
Collections.singleton(new FixtureRuleConfiguration())), 
mock(ComputeNodeInstanceContext.class),
-                mock(ResourceMetaData.class)).iterator();
+        Iterator<ShardingSphereRule> actual = 
DatabaseRulesBuilder.build("foo_db", mock(),
+                new 
DataSourceProvidedDatabaseConfiguration(Collections.emptyMap(), 
Collections.singleton(new FixtureRuleConfiguration())), mock(), 
mock()).iterator();
         assertThat(actual.next(), instanceOf(FixtureRule.class));
         assertFalse(actual.hasNext());
     }

Reply via email to