提交 84ebe845 authored 作者: Thomas Mueller's avatar Thomas Mueller

Test

上级 2590a60d
...@@ -82,13 +82,15 @@ public class TestTableEngines extends TestBase { ...@@ -82,13 +82,15 @@ public class TestTableEngines extends TestBase {
assertEquals("param1", EndlessTableEngine.createTableData.tableEngineParams.get(0)); assertEquals("param1", EndlessTableEngine.createTableData.tableEngineParams.get(0));
assertEquals("param2", EndlessTableEngine.createTableData.tableEngineParams.get(1)); assertEquals("param2", EndlessTableEngine.createTableData.tableEngineParams.get(1));
conn.close(); conn.close();
// Test serialisation of table parameters if (!config.memory) {
EndlessTableEngine.createTableData.tableEngineParams.clear(); // Test serialisation of table parameters
conn = getConnection("tableEngine"); EndlessTableEngine.createTableData.tableEngineParams.clear();
assertEquals(2, EndlessTableEngine.createTableData.tableEngineParams.size()); conn = getConnection("tableEngine");
assertEquals("param1", EndlessTableEngine.createTableData.tableEngineParams.get(0)); assertEquals(2, EndlessTableEngine.createTableData.tableEngineParams.size());
assertEquals("param2", EndlessTableEngine.createTableData.tableEngineParams.get(1)); assertEquals("param1", EndlessTableEngine.createTableData.tableEngineParams.get(0));
conn.close(); assertEquals("param2", EndlessTableEngine.createTableData.tableEngineParams.get(1));
conn.close();
}
deleteDb("tableEngine"); deleteDb("tableEngine");
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论