diff --git a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/ImportTest.java b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/ImportTest.java index cb5ec8f4637770bccd68ae02aa328fd051c83a20..730bd37019944e5e9016584e40ee090762378268 100644 --- a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/ImportTest.java +++ b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/ImportTest.java @@ -10,14 +10,14 @@ import static org.junit.Assert.assertEquals; @FixMethodOrder(MethodSorters.NAME_ASCENDING) public class ImportTest { - static Connection connection; - String dbName = "test"; - String tName = "t0"; - String host = "127.0.0.1"; + private static Connection connection; + static String dbName = "test"; + static String tName = "t0"; + static String host = "127.0.0.1"; private static long ts; @BeforeClass - public void before() { + public static void before() { try { Class.forName("com.taosdata.jdbc.TSDBDriver"); Properties properties = new Properties(); @@ -100,7 +100,7 @@ public class ImportTest { } @AfterClass - public void close() { + public static void close() { try { if (connection != null) { Statement statement = connection.createStatement();