diff --git a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/cases/DatetimeBefore1970Test.java b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/cases/DatetimeBefore1970Test.java index fb69b36f59522675e53305ab6ff4cb4393f46198..35d2297221fa366039abb63fe1f1d32b9d0d74ed 100644 --- a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/cases/DatetimeBefore1970Test.java +++ b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/cases/DatetimeBefore1970Test.java @@ -41,7 +41,7 @@ public class DatetimeBefore1970Test { } @BeforeClass - public void beforeClass() { + public static void beforeClass() { try { Class.forName("com.taosdata.jdbc.TSDBDriver"); conn = DriverManager.getConnection("jdbc:TAOS://127.0.0.1:6030/?user=root&password=taosdata"); @@ -57,7 +57,7 @@ public class DatetimeBefore1970Test { } @AfterClass - public void afterClass() { + public static void afterClass() { try { if (conn != null) conn.close();