提交 52d267e6 编写于 作者: D dingbo

test: test java

上级 9cd9cda9
......@@ -10,6 +10,7 @@ import java.sql.Statement;
public class ConnectCloudExample {
public static void main(String[] args) throws SQLException {
String jdbcUrl = System.getenv("TDENGINE_JDBC_URL");
System.out.println(jdbcUrl);
try(Connection conn = DriverManager.getConnection(jdbcUrl)) {
try(Statement stmt = conn.createStatement()) {
stmt.executeQuery("select server_version()");
......
......@@ -13,8 +13,8 @@ public class TestAll {
ConnectCloudExample.main(new String[]{});
}
@Test
public void testCloudTutorial() throws SQLException {
CloudTutorial.main(new String[]{});
}
// @Test
// public void testCloudTutorial() throws SQLException {
// CloudTutorial.main(new String[]{});
// }
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册