Merge pull request #1092 from wenshao/master

support odps
This commit is contained in:
wenshao
2016-02-29 14:12:57 +08:00
3 changed files with 23 additions and 1 deletions
@@ -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));
}
}