mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
package org.dromara.hutool.db.ds;
|
||||
|
||||
import org.dromara.hutool.db.ds.simple.DbConfig;
|
||||
import org.dromara.hutool.db.ds.simple.SimpleDataSource;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@@ -20,7 +21,8 @@ public class DataSourceWrapperTest {
|
||||
|
||||
@Test
|
||||
public void cloneTest(){
|
||||
final SimpleDataSource simpleDataSource = new SimpleDataSource("jdbc:sqlite:test.db", "", "");
|
||||
final SimpleDataSource simpleDataSource = new SimpleDataSource(
|
||||
new DbConfig("jdbc:sqlite:test.db", "", ""));
|
||||
final DSWrapper wrapper = new DSWrapper(simpleDataSource, "test.driver");
|
||||
|
||||
final DSWrapper clone = wrapper.clone();
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2023 looly(loolly@aliyun.com)
|
||||
* Copyright (c) 2023. looly(loolly@aliyun.com)
|
||||
* Hutool is licensed under Mulan PSL v2.
|
||||
* You can use this software according to the terms and conditions of the Mulan PSL v2.
|
||||
* You may obtain a copy of Mulan PSL v2 at:
|
||||
@@ -10,11 +10,12 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package org.dromara.hutool.db;
|
||||
package org.dromara.hutool.db.ds;
|
||||
|
||||
import com.mchange.v2.c3p0.ComboPooledDataSource;
|
||||
import org.dromara.hutool.core.collection.CollUtil;
|
||||
import org.dromara.hutool.db.ds.DSUtil;
|
||||
import org.dromara.hutool.db.ds.DSWrapper;
|
||||
import org.dromara.hutool.db.Db;
|
||||
import org.dromara.hutool.db.Entity;
|
||||
import org.dromara.hutool.db.ds.bee.BeeDSFactory;
|
||||
import org.dromara.hutool.db.ds.c3p0.C3p0DSFactory;
|
||||
import org.dromara.hutool.db.ds.dbcp.DbcpDSFactory;
|
||||
@@ -22,7 +23,6 @@ import org.dromara.hutool.db.ds.druid.DruidDSFactory;
|
||||
import org.dromara.hutool.db.ds.hikari.HikariDSFactory;
|
||||
import org.dromara.hutool.db.ds.pooled.PooledDSFactory;
|
||||
import org.dromara.hutool.db.ds.tomcat.TomcatDSFactory;
|
||||
import com.mchange.v2.c3p0.ComboPooledDataSource;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
Reference in New Issue
Block a user