Package com.alibaba.druid.bvt.utils

Source Code of com.alibaba.druid.bvt.utils.MySqlUtilsTest

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);
    }
}
TOP

Related Classes of com.alibaba.druid.bvt.utils.MySqlUtilsTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.