import com.alibaba.druid.support.ibatis.DruidDataSourceFactory;
public class DruidDataSourceFactoryTest extends TestCase {
public void test_facttory() throws Exception {
DruidDataSourceFactory factory = new DruidDataSourceFactory();
Properties properties = new Properties();
properties.setProperty("url", "jdbc:mock:xx");
factory.initialize(properties);
DruidDataSource dataSource = (DruidDataSource) factory.getDataSource();
dataSource.close();
}