add DruidDataSourceFactory.getObjectInstance() testcase, test null branche

This commit is contained in:
wenshao
2012-08-28 10:48:06 +08:00
parent b1e1b6c5e7
commit 96196a0ccd
@@ -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));
}
}