This commit is contained in:
Looly 2024-03-26 20:06:04 +08:00
parent db2b6929ba
commit 1eb6e24124

View File

@ -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);
}
}