This commit is contained in:
zyyang 2021-02-20 21:09:52 +08:00
parent e56abac7ec
commit 5d85bd3a19
2 changed files with 4 additions and 4 deletions

View File

@ -384,8 +384,8 @@ public class RestfulConnectionTest {
@Test @Test
public void unwrap() { public void unwrap() {
try { try {
TSDBConnection tsdbConnection = conn.unwrap(TSDBConnection.class); RestfulConnection restfulConnection = conn.unwrap(RestfulConnection.class);
Assert.assertNotNull(tsdbConnection); Assert.assertNotNull(restfulConnection);
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
} }

View File

@ -10,8 +10,8 @@ import java.sql.*;
import java.util.Properties; import java.util.Properties;
public class RestfulDatabaseMetaDataTest { public class RestfulDatabaseMetaDataTest {
private static final String host = "master"; // private static final String host = "master";
// private static final String host = "127.0.0.1"; private static final String host = "127.0.0.1";
private static final String url = "jdbc:TAOS-RS://" + host + ":6041/?user=root&password=taosdata"; private static final String url = "jdbc:TAOS-RS://" + host + ":6041/?user=root&password=taosdata";
private static Connection connection; private static Connection connection;
private static RestfulDatabaseMetaData metaData; private static RestfulDatabaseMetaData metaData;