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 <zhangli...@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)); }