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 96c880e4731 Refactor SingleSQLFederationDeciderTest (#38089)
96c880e4731 is described below

commit 96c880e4731a0947cb353728604a868981c8a4f8
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Feb 19 01:29:44 2026 +0800

    Refactor SingleSQLFederationDeciderTest (#38089)
---
 .../shardingsphere/single/decider/SingleSQLFederationDeciderTest.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/kernel/single/core/src/test/java/org/apache/shardingsphere/single/decider/SingleSQLFederationDeciderTest.java
 
b/kernel/single/core/src/test/java/org/apache/shardingsphere/single/decider/SingleSQLFederationDeciderTest.java
index 0afe73e4ff3..725d16be132 100644
--- 
a/kernel/single/core/src/test/java/org/apache/shardingsphere/single/decider/SingleSQLFederationDeciderTest.java
+++ 
b/kernel/single/core/src/test/java/org/apache/shardingsphere/single/decider/SingleSQLFederationDeciderTest.java
@@ -53,6 +53,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.anyCollection;
 import static org.mockito.Mockito.RETURNS_DEEP_STUBS;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
@@ -121,7 +122,7 @@ class SingleSQLFederationDeciderTest {
     
     private SingleRule createSingleRule(final Collection<QualifiedTable> 
qualifiedTables, final boolean hasOrderDataNode) {
         SingleRule result = mock(SingleRule.class);
-        when(result.getSingleTables(any())).thenReturn(qualifiedTables);
+        
when(result.getSingleTables(anyCollection())).thenReturn(qualifiedTables);
         when(result.getQualifiedTables(any(), 
any())).thenReturn(qualifiedTables);
         MutableDataNodeRuleAttribute ruleAttribute = 
mock(MutableDataNodeRuleAttribute.class);
         when(ruleAttribute.findTableDataNode("foo_db", 
"foo_tbl")).thenReturn(hasOrderDataNode ? Optional.of(new DataNode("ds_0", 
(String) null, "foo_tbl")) : Optional.empty());

Reply via email to