提交 c399aa1c authored 作者: Thomas Mueller's avatar Thomas Mueller

Fix formatting

上级 ffe1a24d
......@@ -46,14 +46,14 @@ public class TestCacheLongKeyLIRS extends TestBase {
testScanResistance();
testRandomOperations();
}
private void testResize() {
// cache with 100 memory, average memory 10
// cache with 100 memory, average memory 10
// (that means 10 entries)
CacheLongKeyLIRS<Integer> t1 =
CacheLongKeyLIRS<Integer> t1 =
new CacheLongKeyLIRS<Integer>(100, 10, 1, 0);
// another cache with more entries
CacheLongKeyLIRS<Integer> t2 =
CacheLongKeyLIRS<Integer> t2 =
new CacheLongKeyLIRS<Integer>(100, 1, 1, 0);
for (int i = 0; i < 200; i++) {
t1.put(i, i, 1);
......
......@@ -57,7 +57,7 @@ public class TestConcurrent extends TestMVStore {
testConcurrentWrite();
testConcurrentRead();
}
private void testConcurrentChangeAndGetVersion() throws InterruptedException {
for (int test = 0; test < 10; test++) {
final MVStore s = new MVStore.Builder().
......
......@@ -34,7 +34,7 @@ public class TestMVStoreTool extends TestBase {
public void test() throws Exception {
testCompress();
}
private void testCompress() {
String fileName = getBaseDir() + "/testCompress.h3";
FileUtils.delete(fileName);
......@@ -60,7 +60,7 @@ public class TestMVStoreTool extends TestBase {
fileName(fileName + ".new").readOnly().open();
assertEquals(s1, s2);
}
private void assertEquals(MVStore a, MVStore b) {
assertEquals(a.getMapNames().size(), b.getMapNames().size());
for (String mapName : a.getMapNames()) {
......@@ -73,5 +73,5 @@ public class TestMVStoreTool extends TestBase {
}
}
}
}
......@@ -957,11 +957,13 @@ public class TestTools extends TestBase {
new AssertThrows(SQLException.class) {
@Override
public void test() throws SQLException {
ChangeFileEncryption.execute(dir, "testChangeFileEncryption", "AES", "wrong".toCharArray(),
ChangeFileEncryption.execute(dir, "testChangeFileEncryption",
"AES", "wrong".toCharArray(),
"def".toCharArray(), true);
}
};
ChangeFileEncryption.execute(dir, "testChangeFileEncryption", "AES", "abc".toCharArray(), "def".toCharArray(),
ChangeFileEncryption.execute(dir, "testChangeFileEncryption",
"AES", "abc".toCharArray(), "def".toCharArray(),
true);
conn = getConnection(url, "sa", "def 123");
......@@ -971,7 +973,7 @@ public class TestTools extends TestBase {
String[] args = new String[] { "-dir", dir, "-db", "testChangeFileEncryption", "-quiet" };
DeleteDbFiles.main(args);
}
private void testServer() throws SQLException {
Connection conn;
deleteDb("test");
......
......@@ -759,4 +759,5 @@ mutate shard shards succession recipients provisionally contributor statutory
inaccuracies detector logos launcher rewrite monitors equivalents trademarks
reinstated uninteresting dead defendant doctrines beat factual fair suspended
exploit noise ongoing disclaimers shrinks remedy party desirable timely construe
deque synchronizers affero
\ No newline at end of file
deque synchronizers affero kevent nikolaj hohmuth grajcar jens fogh hostnames
operate resized
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论