Package com.alibaba.druid.bvt.pool.vendor

Source Code of com.alibaba.druid.bvt.pool.vendor.ValidConnectionCheckerAdapterTest

package com.alibaba.druid.bvt.pool.vendor;

import junit.framework.TestCase;

import org.junit.Assert;

import com.alibaba.druid.pool.ValidConnectionCheckerAdapter;


public class ValidConnectionCheckerAdapterTest extends TestCase {
    public void test_adapter() throws Exception {
        ValidConnectionCheckerAdapter adapter = new ValidConnectionCheckerAdapter();
        adapter.configFromProperties(System.getProperties());
        Assert.assertTrue(adapter.isValidConnection(null, null, 10));
    }
}
TOP

Related Classes of com.alibaba.druid.bvt.pool.vendor.ValidConnectionCheckerAdapterTest

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.