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 ea0d1939357 Add more unit test for DatabaseTypeFactory (#19047)
ea0d1939357 is described below
commit ea0d1939357e6c1be4ac91267aa5e00344e13fda
Author: RunQi Zhao <[email protected]>
AuthorDate: Thu Jul 14 13:58:50 2022 +0800
Add more unit test for DatabaseTypeFactory (#19047)
* Add more unit test for DatabaseTypeFactory
---
.../infra/database/type/DatabaseTypeFactoryTest.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git
a/shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/database/type/DatabaseTypeFactoryTest.java
b/shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/database/type/DatabaseTypeFactoryTest.java
index 0a9c08ea816..c470a9541b2 100644
---
a/shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/database/type/DatabaseTypeFactoryTest.java
+++
b/shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/database/type/DatabaseTypeFactoryTest.java
@@ -40,6 +40,14 @@ public final class DatabaseTypeFactoryTest {
@Test
public void assertGetInstance() {
assertThat(DatabaseTypeFactory.getInstance("FIXTURE"),
instanceOf(FixtureDatabaseType.class));
+ assertThat(DatabaseTypeFactory.getInstance("SQL92"),
instanceOf(SQL92DatabaseType.class));
+ assertThat(DatabaseTypeFactory.getInstance("MySQL"),
instanceOf(MySQLDatabaseType.class));
+ assertThat(DatabaseTypeFactory.getInstance("MariaDB"),
instanceOf(MariaDBDatabaseType.class));
+ assertThat(DatabaseTypeFactory.getInstance("PostgreSQL"),
instanceOf(PostgreSQLDatabaseType.class));
+ assertThat(DatabaseTypeFactory.getInstance("OpenGauss"),
instanceOf(OpenGaussDatabaseType.class));
+ assertThat(DatabaseTypeFactory.getInstance("Oracle"),
instanceOf(OracleDatabaseType.class));
+ assertThat(DatabaseTypeFactory.getInstance("SQLServer"),
instanceOf(SQLServerDatabaseType.class));
+ assertThat(DatabaseTypeFactory.getInstance("H2"),
instanceOf(H2DatabaseType.class));
}
@Test