mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add testcase & remove unused code
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user