You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2025/05/16 02:50:11 UTC

(shardingsphere) branch master updated: Refactor SQLStatementContextFactoryTest (#35430)

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 5116e042f33 Refactor SQLStatementContextFactoryTest (#35430)
5116e042f33 is described below

commit 5116e042f3391361cdd9bd412137830c5458626c
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Fri May 16 10:50:05 2025 +0800

    Refactor SQLStatementContextFactoryTest (#35430)
---
 .../infra/binder/context/statement/SQLStatementContextFactoryTest.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/infra/binder/src/test/java/org/apache/shardingsphere/infra/binder/context/statement/SQLStatementContextFactoryTest.java b/infra/binder/src/test/java/org/apache/shardingsphere/infra/binder/context/statement/SQLStatementContextFactoryTest.java
index c14071be00d..14295ab1218 100644
--- a/infra/binder/src/test/java/org/apache/shardingsphere/infra/binder/context/statement/SQLStatementContextFactoryTest.java
+++ b/infra/binder/src/test/java/org/apache/shardingsphere/infra/binder/context/statement/SQLStatementContextFactoryTest.java
@@ -76,7 +76,8 @@ class SQLStatementContextFactoryTest {
     
     @Test
     void assertSQLStatementContextCreatedWhenSQLStatementNotInstanceOfSelectStatementAndInsertStatement() {
-        SQLStatementContext sqlStatementContext = new SQLBindEngine(mockMetaData(), "foo_db", new HintValueContext()).bind(mock(AlterDatabaseStatement.class), Collections.emptyList());
+        AlterDatabaseStatement alterDatabaseStatement = mock(AlterDatabaseStatement.class);
+        SQLStatementContext sqlStatementContext = new SQLBindEngine(mockMetaData(), "foo_db", new HintValueContext()).bind(alterDatabaseStatement, Collections.emptyList());
         assertThat(sqlStatementContext, instanceOf(CommonSQLStatementContext.class));
     }