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 de364355f2e Refactor YamlSQLParserRuleConfigurationSwapperTest (#31902)
de364355f2e is described below

commit de364355f2e5d5d77b8785725aa2f9e3fc7862a5
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Jun 27 23:27:09 2024 +0800

    Refactor YamlSQLParserRuleConfigurationSwapperTest (#31902)
---
 .../yaml/swapper/YamlSQLParserRuleConfigurationSwapperTest.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/kernel/sql-parser/core/src/test/java/org/apache/shardingsphere/parser/yaml/swapper/YamlSQLParserRuleConfigurationSwapperTest.java
 
b/kernel/sql-parser/core/src/test/java/org/apache/shardingsphere/parser/yaml/swapper/YamlSQLParserRuleConfigurationSwapperTest.java
index 0d4d6078f6b..49de723f06a 100644
--- 
a/kernel/sql-parser/core/src/test/java/org/apache/shardingsphere/parser/yaml/swapper/YamlSQLParserRuleConfigurationSwapperTest.java
+++ 
b/kernel/sql-parser/core/src/test/java/org/apache/shardingsphere/parser/yaml/swapper/YamlSQLParserRuleConfigurationSwapperTest.java
@@ -30,8 +30,8 @@ class YamlSQLParserRuleConfigurationSwapperTest {
     
     @Test
     void assertSwapToYamlConfiguration() {
-        YamlSQLParserRuleConfiguration actual =
-                new 
YamlSQLParserRuleConfigurationSwapper().swapToYamlConfiguration(new 
SQLParserRuleConfiguration(new CacheOption(2, 5L), new CacheOption(4, 7L)));
+        SQLParserRuleConfiguration ruleConfig = new 
SQLParserRuleConfiguration(new CacheOption(2, 5L), new CacheOption(4, 7L));
+        YamlSQLParserRuleConfiguration actual = new 
YamlSQLParserRuleConfigurationSwapper().swapToYamlConfiguration(ruleConfig);
         assertThat(actual.getParseTreeCache().getInitialCapacity(), is(2));
         assertThat(actual.getParseTreeCache().getMaximumSize(), is(5L));
         assertThat(actual.getSqlStatementCache().getInitialCapacity(), is(4));

Reply via email to