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 15b7c9e960f Add ProxyDatabaseTypeUtilsTest (#39300)
15b7c9e960f is described below

commit 15b7c9e960f9c2b4e02b9ed3734e9d7363b99f07
Author: Liang Zhang <[email protected]>
AuthorDate: Sat Aug 1 12:18:33 2026 +0800

    Add ProxyDatabaseTypeUtilsTest (#39300)
---
 .../pipeline/util/ProxyDatabaseTypeUtilsTest.java  | 42 ++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git 
a/test/e2e/operation/pipeline/src/test/java/org/apache/shardingsphere/test/e2e/operation/pipeline/util/ProxyDatabaseTypeUtilsTest.java
 
b/test/e2e/operation/pipeline/src/test/java/org/apache/shardingsphere/test/e2e/operation/pipeline/util/ProxyDatabaseTypeUtilsTest.java
new file mode 100644
index 00000000000..86741a6dca8
--- /dev/null
+++ 
b/test/e2e/operation/pipeline/src/test/java/org/apache/shardingsphere/test/e2e/operation/pipeline/util/ProxyDatabaseTypeUtilsTest.java
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.shardingsphere.test.e2e.operation.pipeline.util;
+
+import org.apache.shardingsphere.database.connector.core.type.DatabaseType;
+import org.apache.shardingsphere.infra.spi.type.typed.TypedSPILoader;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.CsvSource;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.is;
+
+class ProxyDatabaseTypeUtilsTest {
+    
+    @ParameterizedTest(name = "{0}")
+    @CsvSource({
+            "MySQL, MySQL",
+            "Oracle, MySQL",
+            "PostgreSQL, PostgreSQL",
+            "openGauss, openGauss",
+            "SQLServer, SQLServer"
+    })
+    void assertProxyDatabaseType(final String databaseType, final String 
expectedProxyDatabaseType) {
+        DatabaseType actual = 
ProxyDatabaseTypeUtils.getProxyDatabaseType(TypedSPILoader.getService(DatabaseType.class,
 databaseType));
+        assertThat(actual.getType(), is(expectedProxyDatabaseType));
+    }
+}

Reply via email to