mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
add test
This commit is contained in:
parent
db2b6929ba
commit
1eb6e24124
@ -13,8 +13,11 @@
|
|||||||
package cn.hutool.db.ds;
|
package cn.hutool.db.ds;
|
||||||
|
|
||||||
import cn.hutool.setting.Setting;
|
import cn.hutool.setting.Setting;
|
||||||
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
public class IssueI70J95Test {
|
public class IssueI70J95Test {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -27,4 +30,11 @@ public class IssueI70J95Test {
|
|||||||
dbSetting.setByGroup("password", dbSourceName, "***");
|
dbSetting.setByGroup("password", dbSourceName, "***");
|
||||||
DSFactory.create(dbSetting).getDataSource(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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user