提交 df51f374 authored 作者: noelgrandin's avatar noelgrandin

remove unused import

make filename a constant
上级 8749a6d5
...@@ -19,7 +19,6 @@ import java.sql.ResultSetMetaData; ...@@ -19,7 +19,6 @@ import java.sql.ResultSetMetaData;
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.Statement; import java.sql.Statement;
import java.util.ArrayList; import java.util.ArrayList;
import org.h2.engine.Constants;
import org.h2.test.TestAll; import org.h2.test.TestAll;
import org.h2.test.TestBase; import org.h2.test.TestBase;
import org.h2.util.New; import org.h2.util.New;
...@@ -31,6 +30,8 @@ import org.h2.util.StringUtils; ...@@ -31,6 +30,8 @@ import org.h2.util.StringUtils;
*/ */
public class TestScript extends TestBase { public class TestScript extends TestBase {
private static final String FILENAME = "org/h2/test/testScript.sql";
private boolean failFast; private boolean failFast;
private boolean alwaysReconnect; private boolean alwaysReconnect;
...@@ -43,7 +44,6 @@ public class TestScript extends TestBase { ...@@ -43,7 +44,6 @@ public class TestScript extends TestBase {
private String putBack; private String putBack;
private StringBuilder errors; private StringBuilder errors;
private ArrayList<String> statements; private ArrayList<String> statements;
private final String fileName = "org/h2/test/testScript.sql";
/** /**
* Run just this test. * Run just this test.
...@@ -85,7 +85,7 @@ public class TestScript extends TestBase { ...@@ -85,7 +85,7 @@ public class TestScript extends TestBase {
private void testScript() throws Exception { private void testScript() throws Exception {
deleteDb("script"); deleteDb("script");
String outFile = "test.out.txt"; String outFile = "test.out.txt";
String inFile = fileName; String inFile = FILENAME;
conn = getConnection("script"); conn = getConnection("script");
stat = conn.createStatement(); stat = conn.createStatement();
out = new PrintStream(new FileOutputStream(outFile)); out = new PrintStream(new FileOutputStream(outFile));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论