提交 cf22b0a3 编写于 作者: Z zyyang

change

上级 90e48a7c
...@@ -15,7 +15,7 @@ import java.util.Properties; ...@@ -15,7 +15,7 @@ import java.util.Properties;
public class RestfulConnectionTest { public class RestfulConnectionTest {
// private static final String host = "127.0.0.1"; // private static final String host = "127.0.0.1";
private static final String host = "master"; private static final String host = "master";
private static Connection conn; private static Connection conn;
...@@ -113,7 +113,7 @@ public class RestfulConnectionTest { ...@@ -113,7 +113,7 @@ public class RestfulConnectionTest {
public void getMetaData() throws SQLException { public void getMetaData() throws SQLException {
DatabaseMetaData meta = conn.getMetaData(); DatabaseMetaData meta = conn.getMetaData();
Assert.assertNotNull(meta); Assert.assertNotNull(meta);
Assert.assertEquals("com.taosdata.jdbc.TSDBDriver", meta.getDriverName()); Assert.assertEquals("com.taosdata.jdbc.rs.RestfulDriver", meta.getDriverName());
} }
@Test @Test
...@@ -238,7 +238,7 @@ public class RestfulConnectionTest { ...@@ -238,7 +238,7 @@ public class RestfulConnectionTest {
int status = rs.getInt("server_status()"); int status = rs.getInt("server_status()");
Assert.assertEquals(1, status); Assert.assertEquals(1, status);
conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY, ResultSet.HOLD_CURSORS_OVER_COMMIT); conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY, ResultSet.HOLD_CURSORS_OVER_COMMIT);
} }
@Test(expected = SQLFeatureNotSupportedException.class) @Test(expected = SQLFeatureNotSupportedException.class)
...@@ -393,7 +393,7 @@ public class RestfulConnectionTest { ...@@ -393,7 +393,7 @@ public class RestfulConnectionTest {
@Test @Test
public void isWrapperFor() throws SQLException { public void isWrapperFor() throws SQLException {
Assert.assertTrue(conn.isWrapperFor(TSDBConnection.class)); Assert.assertTrue(conn.isWrapperFor(RestfulConnection.class));
} }
@BeforeClass @BeforeClass
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册