add testcase & remove unused code

This commit is contained in:
wenshao
2013-06-16 08:51:51 +08:00
parent 2aabdaea4b
commit da433839ee
98 changed files with 1424 additions and 1459 deletions
@@ -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);
}
}