提交 8a455cfd 编写于 作者: Z zyyang

update jdbc test cases

上级 3f09fcb0
......@@ -12,8 +12,6 @@ public class TestPreparedStatement {
Class.forName("com.taosdata.jdbc.TSDBDriver");
Properties properties = new Properties();
properties.setProperty(TSDBDriver.PROPERTY_KEY_HOST, "localhost");
properties.setProperty(TSDBDriver.PROPERTY_KEY_USER,"root");
properties.setProperty(TSDBDriver.PROPERTY_KEY_PASSWORD,"taosdata");
connection = DriverManager.getConnection("jdbc:TAOS://localhost:0/", properties);
String rawSql = "select * from test.log0601";
......
......@@ -13,8 +13,6 @@ public class TestTSDBDatabaseMetaData {
Class.forName("com.taosdata.jdbc.TSDBDriver");
Properties properties = new Properties();
properties.setProperty(TSDBDriver.PROPERTY_KEY_HOST, "localhost");
properties.setProperty(TSDBDriver.PROPERTY_KEY_USER,"root");
properties.setProperty(TSDBDriver.PROPERTY_KEY_PASSWORD,"taosdata");
connection = DriverManager.getConnection("jdbc:TAOS://localhost:0/", properties);
dbMetaData = connection.getMetaData();
......
......@@ -16,8 +16,6 @@ public class TestTSDBSubscribe {
properties.setProperty(TSDBDriver.PROPERTY_KEY_CHARSET, "UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_LOCALE, "en_US.UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_TIME_ZONE, "UTC-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_USER,"root");
properties.setProperty(TSDBDriver.PROPERTY_KEY_PASSWORD,"taosdata");
String cs = String.format("jdbc:TAOS://%s:0/%s", host, database);
return (TSDBConnection)DriverManager.getConnection(cs, properties);
......
......@@ -40,8 +40,6 @@ public class BatchInsertTest extends BaseTest {
properties.setProperty(TSDBDriver.PROPERTY_KEY_CHARSET, "UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_LOCALE, "en_US.UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_TIME_ZONE, "UTC-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_USER,"root");
properties.setProperty(TSDBDriver.PROPERTY_KEY_PASSWORD,"taosdata");
connection = DriverManager.getConnection("jdbc:TAOS://" + host + ":0/", properties);
......
......@@ -29,8 +29,6 @@ public class ConnectionTest extends BaseTest {
properties.setProperty(TSDBDriver.PROPERTY_KEY_CHARSET, "UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_LOCALE, "en_US.UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_TIME_ZONE, "UTC-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_USER,"root");
properties.setProperty(TSDBDriver.PROPERTY_KEY_PASSWORD,"taosdata");
connection = DriverManager.getConnection("jdbc:TAOS://" + host + ":0/", properties);
......
......@@ -26,8 +26,6 @@ public class DatabaseMetaDataTest extends BaseTest {
properties.setProperty(TSDBDriver.PROPERTY_KEY_CHARSET, "UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_LOCALE, "en_US.UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_TIME_ZONE, "UTC-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_USER,"root");
properties.setProperty(TSDBDriver.PROPERTY_KEY_PASSWORD,"taosdata");
connection = DriverManager.getConnection("jdbc:TAOS://" + host + ":0/" , properties);
......
......@@ -28,8 +28,6 @@ public class ImportTest extends BaseTest {
properties.setProperty(TSDBDriver.PROPERTY_KEY_CHARSET, "UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_LOCALE, "en_US.UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_TIME_ZONE, "UTC-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_USER,"root");
properties.setProperty(TSDBDriver.PROPERTY_KEY_PASSWORD,"taosdata");
connection = DriverManager.getConnection("jdbc:TAOS://" + host + ":0/", properties);
......
......@@ -33,8 +33,6 @@ public class PreparedStatementTest extends BaseTest {
properties.setProperty(TSDBDriver.PROPERTY_KEY_CHARSET, "UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_LOCALE, "en_US.UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_TIME_ZONE, "UTC-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_USER,"root");
properties.setProperty(TSDBDriver.PROPERTY_KEY_PASSWORD,"taosdata");
connection = DriverManager.getConnection("jdbc:TAOS://" + host + ":0/", properties);
......
......@@ -34,9 +34,6 @@ public class ResultSetTest extends BaseTest {
properties.setProperty(TSDBDriver.PROPERTY_KEY_CHARSET, "UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_LOCALE, "en_US.UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_TIME_ZONE, "UTC-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_USER,"root");
properties.setProperty(TSDBDriver.PROPERTY_KEY_PASSWORD,"taosdata");
connection = DriverManager.getConnection("jdbc:TAOS://" + host + ":0/", properties);
......
......@@ -28,8 +28,6 @@ public class SelectTest extends BaseTest {
properties.setProperty(TSDBDriver.PROPERTY_KEY_CHARSET, "UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_LOCALE, "en_US.UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_TIME_ZONE, "UTC-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_USER,"root");
properties.setProperty(TSDBDriver.PROPERTY_KEY_PASSWORD,"taosdata");
connection = DriverManager.getConnection("jdbc:TAOS://" + host + ":0/" , properties);
......
......@@ -31,8 +31,6 @@ public class StableTest extends BaseTest {
properties.setProperty(TSDBDriver.PROPERTY_KEY_CHARSET, "UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_LOCALE, "en_US.UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_TIME_ZONE, "UTC-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_USER,"root");
properties.setProperty(TSDBDriver.PROPERTY_KEY_PASSWORD,"taosdata");
connection = DriverManager.getConnection("jdbc:TAOS://" + host + ":0/" , properties);
......
......@@ -30,8 +30,6 @@ public class StatementTest extends BaseTest {
properties.setProperty(TSDBDriver.PROPERTY_KEY_CHARSET, "UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_LOCALE, "en_US.UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_TIME_ZONE, "UTC-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_USER,"root");
properties.setProperty(TSDBDriver.PROPERTY_KEY_PASSWORD,"taosdata");
connection = DriverManager.getConnection("jdbc:TAOS://" + host + ":0/", properties);
......
......@@ -32,8 +32,6 @@ public class SubscribeTest extends BaseTest {
properties.setProperty(TSDBDriver.PROPERTY_KEY_CHARSET, "UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_LOCALE, "en_US.UTF-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_TIME_ZONE, "UTC-8");
properties.setProperty(TSDBDriver.PROPERTY_KEY_USER,"root");
properties.setProperty(TSDBDriver.PROPERTY_KEY_PASSWORD,"taosdata");
connection = DriverManager.getConnection("jdbc:TAOS://" + host + ":0/", properties);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册