mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
@@ -0,0 +1,17 @@
|
||||
package com.alibaba.druid.bvt.utils;
|
||||
|
||||
import org.junit.Assert;
|
||||
|
||||
import com.alibaba.druid.util.JdbcConstants;
|
||||
import com.alibaba.druid.util.JdbcUtils;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class JdbcUtilsTest_for_odps extends TestCase {
|
||||
public void test_odps() throws Exception {
|
||||
Assert.assertEquals(JdbcConstants.ODPS_DRIVER, JdbcUtils.getDriverClassName("jdbc:odps:"));
|
||||
}
|
||||
public void test_odps_dbtype() throws Exception {
|
||||
Assert.assertEquals(JdbcConstants.ODPS, JdbcUtils.getDbType("jdbc:odps:", null));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user