This commit is contained in:
Looly
2024-01-17 18:07:15 +08:00
parent 8ce0ce7474
commit af67ab7a89
9 changed files with 136 additions and 59 deletions

View File

@@ -21,9 +21,12 @@ public class DataSourceWrapperTest {
@Test
public void cloneTest(){
final SimpleDataSource simpleDataSource = new SimpleDataSource(
new DbConfig("jdbc:sqlite:test.db", "", ""));
final DSWrapper wrapper = new DSWrapper(simpleDataSource, "test.driver");
final DbConfig dbConfig = DbConfig
.of("jdbc:sqlite:test.db", "", "")
.setDriver("test.driver");
final SimpleDataSource simpleDataSource = new SimpleDataSource(dbConfig);
final DSWrapper wrapper = new DSWrapper(simpleDataSource, dbConfig);
final DSWrapper clone = wrapper.clone();
Assertions.assertEquals("test.driver", clone.getDriver());