You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by ji...@apache.org on 2024/06/25 14:53:46 UTC
(shardingsphere) branch master updated: Refactor YamlShardingAutoTableRuleConfigurationSwapperTest (#31850)
This is an automated email from the ASF dual-hosted git repository.
jianglongtao 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 fbb97c54165 Refactor YamlShardingAutoTableRuleConfigurationSwapperTest (#31850)
fbb97c54165 is described below
commit fbb97c54165d54a1c08ceab9ffb40d6ca406e3ad
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Tue Jun 25 22:53:39 2024 +0800
Refactor YamlShardingAutoTableRuleConfigurationSwapperTest (#31850)
---
.../rule/YamlShardingAutoTableRuleConfigurationSwapperTest.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/yaml/swapper/rule/YamlShardingAutoTableRuleConfigurationSwapperTest.java b/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/yaml/swapper/rule/YamlShardingAutoTableRuleConfigurationSwapperTest.java
index 71c9164a15a..51e42e15b12 100644
--- a/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/yaml/swapper/rule/YamlShardingAutoTableRuleConfigurationSwapperTest.java
+++ b/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/yaml/swapper/rule/YamlShardingAutoTableRuleConfigurationSwapperTest.java
@@ -73,10 +73,10 @@ class YamlShardingAutoTableRuleConfigurationSwapperTest {
private YamlShardingStrategyConfiguration createYamlShardingStrategyConfiguration() {
YamlShardingStrategyConfiguration result = new YamlShardingStrategyConfiguration();
- YamlStandardShardingStrategyConfiguration yamlStandardShardingStrategyConfiguration = new YamlStandardShardingStrategyConfiguration();
- yamlStandardShardingStrategyConfiguration.setShardingColumn("user_id");
- yamlStandardShardingStrategyConfiguration.setShardingAlgorithmName("hash_mod");
- result.setStandard(yamlStandardShardingStrategyConfiguration);
+ YamlStandardShardingStrategyConfiguration yamlStandardShardingStrategyConfig = new YamlStandardShardingStrategyConfiguration();
+ yamlStandardShardingStrategyConfig.setShardingColumn("user_id");
+ yamlStandardShardingStrategyConfig.setShardingAlgorithmName("hash_mod");
+ result.setStandard(yamlStandardShardingStrategyConfig);
return result;
}