Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
94fec712
提交
94fec712
authored
5月 17, 2013
作者:
noelgrandin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cleanup: remove unnecessary throws clauses
上级
b203816d
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
13 行增加
和
13 行删除
+13
-13
TestWeb.java
h2/src/test/org/h2/test/server/TestWeb.java
+1
-1
TestDataUtils.java
h2/src/test/org/h2/test/store/TestDataUtils.java
+2
-2
TestMVStore.java
h2/src/test/org/h2/test/store/TestMVStore.java
+1
-1
TestTransactionStore.java
h2/src/test/org/h2/test/store/TestTransactionStore.java
+2
-2
TestCompress.java
h2/src/test/org/h2/test/unit/TestCompress.java
+1
-1
TestConnectionInfo.java
h2/src/test/org/h2/test/unit/TestConnectionInfo.java
+1
-1
TestFile.java
h2/src/test/org/h2/test/unit/TestFile.java
+1
-1
TestFileLockSerialized.java
h2/src/test/org/h2/test/unit/TestFileLockSerialized.java
+1
-1
TestObjectDeserialization.java
h2/src/test/org/h2/test/unit/TestObjectDeserialization.java
+2
-2
TestUtils.java
h2/src/test/org/h2/test/unit/TestUtils.java
+1
-1
没有找到文件。
h2/src/test/org/h2/test/server/TestWeb.java
浏览文件 @
94fec712
...
...
@@ -51,7 +51,7 @@ public class TestWeb extends TestBase {
testWebApp
();
}
private
static
void
testWrongParameters
()
throws
Exception
{
private
static
void
testWrongParameters
()
{
new
AssertThrows
(
ErrorCode
.
FEATURE_NOT_SUPPORTED_1
)
{
public
void
test
()
throws
SQLException
{
Server
.
createPgServer
(
"-pgPort 8182"
);
...
...
h2/src/test/org/h2/test/store/TestDataUtils.java
浏览文件 @
94fec712
...
...
@@ -27,7 +27,7 @@ public class TestDataUtils extends TestBase {
TestBase
.
createCaller
().
init
().
test
();
}
public
void
test
()
throws
Exception
{
public
void
test
()
{
testEncodeLength
();
testFletcher
();
testMap
();
...
...
@@ -37,7 +37,7 @@ public class TestDataUtils extends TestBase {
testPagePos
();
}
private
void
testFletcher
()
throws
Exception
{
private
void
testFletcher
()
{
byte
[]
data
=
new
byte
[
10000
];
for
(
int
i
=
0
;
i
<
10000
;
i
+=
1000
)
{
assertEquals
(-
1
,
DataUtils
.
getFletcher32
(
data
,
i
));
...
...
h2/src/test/org/h2/test/store/TestMVStore.java
浏览文件 @
94fec712
...
...
@@ -1170,7 +1170,7 @@ public class TestMVStore extends TestBase {
// System.out.println("len2: " + len);
}
private
void
testReuseSpace
()
throws
Exception
{
private
void
testReuseSpace
()
{
String
fileName
=
getBaseDir
()
+
"/testReuseSpace.h3"
;
FileUtils
.
delete
(
fileName
);
long
initialLength
=
0
;
...
...
h2/src/test/org/h2/test/store/TestTransactionStore.java
浏览文件 @
94fec712
...
...
@@ -180,7 +180,7 @@ public class TestTransactionStore extends TestBase {
s
.
close
();
}
private
void
testTwoPhaseCommit
()
throws
Exception
{
private
void
testTwoPhaseCommit
()
{
String
fileName
=
getBaseDir
()
+
"/testTwoPhaseCommit.h3"
;
FileUtils
.
delete
(
fileName
);
...
...
@@ -251,7 +251,7 @@ public class TestTransactionStore extends TestBase {
FileUtils
.
delete
(
fileName
);
}
private
void
testSavepoint
()
throws
Exception
{
private
void
testSavepoint
()
{
MVStore
s
=
MVStore
.
open
(
null
);
TransactionStore
ts
=
new
TransactionStore
(
s
);
Transaction
tx
;
...
...
h2/src/test/org/h2/test/unit/TestCompress.java
浏览文件 @
94fec712
...
...
@@ -119,7 +119,7 @@ public class TestCompress extends TestBase {
}
}
private
void
testVariableEnd
()
throws
Exception
{
private
void
testVariableEnd
()
{
CompressTool
utils
=
CompressTool
.
getInstance
();
StringBuilder
b
=
new
StringBuilder
();
for
(
int
i
=
0
;
i
<
90
;
i
++)
{
...
...
h2/src/test/org/h2/test/unit/TestConnectionInfo.java
浏览文件 @
94fec712
...
...
@@ -41,7 +41,7 @@ public class TestConnectionInfo extends TestBase {
getConnection
(
"jdbc:h2:mem:;init=runscript from 'wrong.file'"
);
}
private
void
testConnectionInfo
()
throws
Exception
{
private
void
testConnectionInfo
()
{
Properties
info
=
new
Properties
();
ConnectionInfo
connectionInfo
=
new
ConnectionInfo
(
"jdbc:h2:mem:test"
+
...
...
h2/src/test/org/h2/test/unit/TestFile.java
浏览文件 @
94fec712
...
...
@@ -37,7 +37,7 @@ public class TestFile extends TestBase implements DataHandler {
doTest
(
true
,
true
);
}
private
void
doTest
(
boolean
nioMem
,
boolean
compress
)
throws
Exception
{
private
void
doTest
(
boolean
nioMem
,
boolean
compress
)
{
int
len
=
getSize
(
1000
,
10000
);
Random
random
=
new
Random
();
FileStore
mem
=
null
,
file
=
null
;
...
...
h2/src/test/org/h2/test/unit/TestFileLockSerialized.java
浏览文件 @
94fec712
...
...
@@ -536,7 +536,7 @@ public class TestFileLockSerialized extends TestBase {
deleteDb
(
"fileLockSerialized"
);
}
private
void
testBigDatabase
(
boolean
withCache
)
throws
Exception
{
private
void
testBigDatabase
(
boolean
withCache
)
{
boolean
longRun
=
false
;
final
int
howMuchRows
=
longRun
?
2000000
:
500000
;
deleteDb
(
"fileLockSerialized"
);
...
...
h2/src/test/org/h2/test/unit/TestObjectDeserialization.java
浏览文件 @
94fec712
...
...
@@ -36,11 +36,11 @@ public class TestObjectDeserialization extends TestBase {
TestBase
.
createCaller
().
init
().
test
();
}
public
void
test
()
throws
Exception
{
public
void
test
()
{
testThreadContextClassLoader
();
}
private
void
testThreadContextClassLoader
()
throws
Exception
{
private
void
testThreadContextClassLoader
()
{
usesThreadContextClassLoader
=
false
;
Thread
.
currentThread
().
setContextClassLoader
(
new
TestClassLoader
());
try
{
...
...
h2/src/test/org/h2/test/unit/TestUtils.java
浏览文件 @
94fec712
...
...
@@ -108,7 +108,7 @@ public class TestUtils extends TestBase {
}
}
private
void
testGetNonPrimitiveClass
()
throws
Exception
{
private
void
testGetNonPrimitiveClass
()
{
testGetNonPrimitiveClass
(
BigInteger
.
class
,
BigInteger
.
class
);
testGetNonPrimitiveClass
(
Boolean
.
class
,
boolean
.
class
);
testGetNonPrimitiveClass
(
Byte
.
class
,
byte
.
class
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论