Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
35f13aae
提交
35f13aae
authored
7 年前
作者:
Noel Grandin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move test scripts to own package
preparatory work to splitting up the big test script
上级
87911380
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
8 行增加
和
9 行删除
+8
-9
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+2
-2
TestScript.java
h2/src/test/org/h2/test/scripts/TestScript.java
+3
-4
TestScriptSimple.java
h2/src/test/org/h2/test/scripts/TestScriptSimple.java
+2
-2
testScript.sql
h2/src/test/org/h2/test/scripts/testScript.sql
+0
-0
testSimple.in.txt
h2/src/test/org/h2/test/scripts/testSimple.in.txt
+0
-0
TestCrashAPI.java
h2/src/test/org/h2/test/synth/TestCrashAPI.java
+1
-1
没有找到文件。
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
35f13aae
...
...
@@ -62,8 +62,6 @@ import org.h2.test.db.TestRights;
import
org.h2.test.db.TestRowFactory
;
import
org.h2.test.db.TestRunscript
;
import
org.h2.test.db.TestSQLInjection
;
import
org.h2.test.db.TestScript
;
import
org.h2.test.db.TestScriptSimple
;
import
org.h2.test.db.TestSelectCountNonNullColumn
;
import
org.h2.test.db.TestSequence
;
import
org.h2.test.db.TestSessionsLocks
;
...
...
@@ -124,6 +122,8 @@ import org.h2.test.mvcc.TestMvccMultiThreaded2;
import
org.h2.test.poweroff.TestReorderWrites
;
import
org.h2.test.recover.RecoverLobTest
;
import
org.h2.test.rowlock.TestRowLocks
;
import
org.h2.test.scripts.TestScript
;
import
org.h2.test.scripts.TestScriptSimple
;
import
org.h2.test.server.TestAutoServer
;
import
org.h2.test.server.TestInit
;
import
org.h2.test.server.TestNestedLoop
;
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/
db
/TestScript.java
→
h2/src/test/org/h2/test/
scripts
/TestScript.java
浏览文件 @
35f13aae
...
...
@@ -3,7 +3,7 @@
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package
org
.
h2
.
test
.
db
;
package
org
.
h2
.
test
.
scripts
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
...
...
@@ -30,7 +30,7 @@ import org.h2.util.StringUtils;
*/
public
class
TestScript
extends
TestBase
{
private
static
final
String
FILENAME
=
"org/h2/test/testScript.sql"
;
private
static
final
String
FILENAME
=
"org/h2/test/
scripts/
testScript.sql"
;
private
boolean
failFast
;
...
...
@@ -87,12 +87,11 @@ public class TestScript extends TestBase {
private
void
testScript
()
throws
Exception
{
deleteDb
(
"script"
);
String
outFile
=
"test.out.txt"
;
String
inFile
=
FILENAME
;
conn
=
getConnection
(
"script"
);
stat
=
conn
.
createStatement
();
out
=
new
PrintStream
(
new
FileOutputStream
(
outFile
));
errors
=
new
StringBuilder
();
testFile
(
inFile
);
testFile
(
FILENAME
);
conn
.
close
();
out
.
close
();
if
(
errors
.
length
()
>
0
)
{
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/
db
/TestScriptSimple.java
→
h2/src/test/org/h2/test/
scripts
/TestScriptSimple.java
浏览文件 @
35f13aae
...
...
@@ -3,7 +3,7 @@
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package
org
.
h2
.
test
.
db
;
package
org
.
h2
.
test
.
scripts
;
import
java.io.InputStream
;
import
java.io.InputStreamReader
;
...
...
@@ -38,7 +38,7 @@ public class TestScriptSimple extends TestBase {
}
deleteDb
(
"scriptSimple"
);
reconnect
();
String
inFile
=
"org/h2/test/testSimple.in.txt"
;
String
inFile
=
"org/h2/test/
scripts/
testSimple.in.txt"
;
InputStream
is
=
getClass
().
getClassLoader
().
getResourceAsStream
(
inFile
);
LineNumberReader
lineReader
=
new
LineNumberReader
(
new
InputStreamReader
(
is
,
"Cp1252"
));
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/testScript.sql
→
h2/src/test/org/h2/test/
scripts/
testScript.sql
浏览文件 @
35f13aae
File moved
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/testSimple.in.txt
→
h2/src/test/org/h2/test/
scripts/
testSimple.in.txt
浏览文件 @
35f13aae
File moved
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/synth/TestCrashAPI.java
浏览文件 @
35f13aae
...
...
@@ -37,7 +37,7 @@ import org.h2.store.FileLister;
import
org.h2.store.fs.FileUtils
;
import
org.h2.test.TestAll
;
import
org.h2.test.TestBase
;
import
org.h2.test.
db
.TestScript
;
import
org.h2.test.
scripts
.TestScript
;
import
org.h2.test.synth.sql.RandomGen
;
import
org.h2.tools.Backup
;
import
org.h2.tools.DeleteDbFiles
;
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论