From 1eb6e2412457031c17e8e17670f0a0050fdabfb0 Mon Sep 17 00:00:00 2001 From: Looly Date: Tue, 26 Mar 2024 20:06:04 +0800 Subject: [PATCH] add test --- .../src/test/java/cn/hutool/db/ds/IssueI70J95Test.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hutool-db/src/test/java/cn/hutool/db/ds/IssueI70J95Test.java b/hutool-db/src/test/java/cn/hutool/db/ds/IssueI70J95Test.java index 4af9fb72c..f216ac98c 100755 --- a/hutool-db/src/test/java/cn/hutool/db/ds/IssueI70J95Test.java +++ b/hutool-db/src/test/java/cn/hutool/db/ds/IssueI70J95Test.java @@ -13,8 +13,11 @@ package cn.hutool.db.ds; import cn.hutool.setting.Setting; +import org.junit.Assert; import org.junit.Test; +import javax.sql.DataSource; + public class IssueI70J95Test { @Test @@ -27,4 +30,11 @@ public class IssueI70J95Test { dbSetting.setByGroup("password", dbSourceName, "***"); DSFactory.create(dbSetting).getDataSource(dbSourceName); } + + @Test + public void getDataSourceTest2() { + final Setting dbSetting = new Setting("config/db.setting"); + final DataSource dataSource = DSFactory.create(dbSetting).getDataSource(""); + Assert.assertNotNull(dataSource); + } }