This commit is contained in:
zyyang 2021-01-21 19:41:12 +08:00
parent 2761876bcd
commit 93a774e7a7
1 changed files with 6 additions and 6 deletions

View File

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