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

terrymanu 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 e34b3592b49 Code format for DatabaseTypeFactoryTest (#39018)
e34b3592b49 is described below

commit e34b3592b49cdf5fa2a7b7fdde373a122b864d5f
Author: Liang Zhang <[email protected]>
AuthorDate: Mon Jul 6 13:21:29 2026 +0800

    Code format for DatabaseTypeFactoryTest (#39018)
---
 .../database/connector/core/type/DatabaseTypeFactoryTest.java    | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git 
a/database/connector/core/src/test/java/org/apache/shardingsphere/database/connector/core/type/DatabaseTypeFactoryTest.java
 
b/database/connector/core/src/test/java/org/apache/shardingsphere/database/connector/core/type/DatabaseTypeFactoryTest.java
index ee2d90b26ba..851e2c0a31d 100644
--- 
a/database/connector/core/src/test/java/org/apache/shardingsphere/database/connector/core/type/DatabaseTypeFactoryTest.java
+++ 
b/database/connector/core/src/test/java/org/apache/shardingsphere/database/connector/core/type/DatabaseTypeFactoryTest.java
@@ -51,8 +51,7 @@ class DatabaseTypeFactoryTest {
     
     @ParameterizedTest(name = "{0}")
     @MethodSource("getDatabaseTypeWithRecognizedURLArguments")
-    void assertGetWithRecognizedURL(final String name, final String url, final 
Collection<DatabaseType> databaseTypes,
-                                    final DatabaseType expectedDatabaseType) {
+    void assertGetWithRecognizedURL(final String name, final String url, final 
Collection<DatabaseType> databaseTypes, final DatabaseType 
expectedDatabaseType) {
         
when(ShardingSphereServiceLoader.getServiceInstances(DatabaseType.class)).thenReturn(databaseTypes);
         assertThat(DatabaseTypeFactory.get(url), is(expectedDatabaseType));
     }
@@ -67,8 +66,7 @@ class DatabaseTypeFactoryTest {
     
     @ParameterizedTest(name = "{0}")
     @MethodSource("getDatabaseTypeWithDatabaseMetaDataArguments")
-    void assertGetWithDatabaseMetaData(final String name, final String url, 
final Collection<DatabaseType> databaseTypes,
-                                       final DatabaseType 
expectedDatabaseType) throws SQLException {
+    void assertGetWithDatabaseMetaData(final String name, final String url, 
final Collection<DatabaseType> databaseTypes, final DatabaseType 
expectedDatabaseType) throws SQLException {
         DatabaseMetaData metaData = mock(DatabaseMetaData.class);
         when(metaData.getURL()).thenReturn(url);
         
when(ShardingSphereServiceLoader.getServiceInstances(DatabaseType.class)).thenReturn(databaseTypes);
@@ -171,8 +169,7 @@ class DatabaseTypeFactoryTest {
         DatabaseType branchOnlyDatabaseType = 
mockDatabaseType("jdbc:branch-only:", mock(DatabaseType.class));
         return Stream.of(
                 Arguments.of("trunk url", "jdbc:trunk://localhost:3306/test", 
Collections.singletonList(trunkDatabaseType), trunkDatabaseType),
-                Arguments.of("branch only url", 
"jdbc:branch-only://localhost:3306/test",
-                        Collections.singletonList(branchOnlyDatabaseType), 
branchOnlyDatabaseType));
+                Arguments.of("branch only url", 
"jdbc:branch-only://localhost:3306/test", 
Collections.singletonList(branchOnlyDatabaseType), branchOnlyDatabaseType));
     }
     
     private static DatabaseType mockDatabaseType(final String jdbcUrlPrefix, 
final DatabaseType trunkDatabaseType) {

Reply via email to