mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add DruidDataSourceFactory.getObjectInstance() testcase, test null branche
This commit is contained in:
@@ -160,4 +160,12 @@ public class DruidDataSourceFactoryTest1 extends TestCase {
|
||||
JdbcUtils.close(dataSource);
|
||||
}
|
||||
}
|
||||
|
||||
public void test_getObjectInstance() throws Exception {
|
||||
Assert.assertNull(new DruidDataSourceFactory().getObjectInstance(null, null, null, null));
|
||||
}
|
||||
|
||||
public void test_getObjectInstance_1() throws Exception {
|
||||
Assert.assertNull(new DruidDataSourceFactory().getObjectInstance(new Object(), null, null, null));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user