Ejemplo n.º 1
0
  public void test_setConnectionInitSqls() throws Exception {
    DruidPooledConnection conn = dataSource.getConnection().unwrap(DruidPooledConnection.class);

    conn.close();

    dataSource.setConnectionInitSqls(null);
  }
Ejemplo n.º 2
0
 public void test_setConnectionInitSqls_1() throws Exception {
   dataSource.setConnectionInitSqls(Collections.emptyList());
   dataSource.setConnectionInitSqls(Collections.singleton(null));
 }