mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
18 lines
530 B
Java
18 lines
530 B
Java
package com.alibaba.druid.bvt.utils;
|
|
|
|
import java.lang.reflect.Constructor;
|
|
|
|
import com.alibaba.druid.util.MySqlUtils;
|
|
import com.mysql.jdbc.ConnectionImpl;
|
|
|
|
import junit.framework.TestCase;
|
|
|
|
public class MySqlUtilsTest extends TestCase {
|
|
public void test_() throws Exception {
|
|
Constructor<ConnectionImpl> constructor = ConnectionImpl.class.getDeclaredConstructor();
|
|
constructor.setAccessible(true);
|
|
ConnectionImpl conn = constructor.newInstance();
|
|
MySqlUtils.createXAConnection(conn);
|
|
}
|
|
}
|