This is an automated email from the ASF dual-hosted git repository.

duanzhengqiang 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 011bd386965 Add test cases on ShardingSphereURL (#33187)
011bd386965 is described below

commit 011bd3869655e2406d0df614b35b5f8a3b28b7ae
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Oct 9 18:05:00 2024 +0800

    Add test cases on ShardingSphereURL (#33187)
---
 .../org/apache/shardingsphere/infra/url/core/ShardingSphereURLTest.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/infra/url/core/src/test/java/org/apache/shardingsphere/infra/url/core/ShardingSphereURLTest.java
 
b/infra/url/core/src/test/java/org/apache/shardingsphere/infra/url/core/ShardingSphereURLTest.java
index 9365dbfc895..a47715ebe26 100644
--- 
a/infra/url/core/src/test/java/org/apache/shardingsphere/infra/url/core/ShardingSphereURLTest.java
+++ 
b/infra/url/core/src/test/java/org/apache/shardingsphere/infra/url/core/ShardingSphereURLTest.java
@@ -50,6 +50,8 @@ class ShardingSphereURLTest {
             multiParams.put("databaseName", "sharding_db");
             multiParams.put("placeholder-type", "none");
             return 
Stream.of(Arguments.of("absolutepath:/Users/shardingsphere/config.yaml", 
"absolutepath:", "/Users/shardingsphere/config.yaml", Collections.emptyMap()),
+                    
Arguments.of("absolutepath:/Users/shardingsphere/config.yaml?", 
"absolutepath:", "/Users/shardingsphere/config.yaml", Collections.emptyMap()),
+                    
Arguments.of("absolutepath:/Users/shardingsphere/config.yaml?databaseName", 
"absolutepath:", "/Users/shardingsphere/config.yaml", Collections.emptyMap()),
                     
Arguments.of("absolutepath:C:\\Users\\shardingsphere\\config.yaml", 
"absolutepath:", "C:\\Users\\shardingsphere\\config.yaml", 
Collections.emptyMap()),
                     
Arguments.of("absolutepath:/Users/configDirName?databaseName=sharding_db", 
"absolutepath:", "/Users/configDirName", 
Collections.singletonMap("databaseName", "sharding_db")),
                     
Arguments.of("absolutepath:/Users/configDirName/?databaseName=sharding_db", 
"absolutepath:", "/Users/configDirName/", 
Collections.singletonMap("databaseName", "sharding_db")),

Reply via email to