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

Fix formatting

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