提交 3a257a31 authored 作者: Thomas Mueller's avatar Thomas Mueller

Improve code coverage.

上级 96b953d6
...@@ -40,20 +40,19 @@ public class TestXASimple extends TestBase { ...@@ -40,20 +40,19 @@ public class TestXASimple extends TestBase {
if (config.memory || config.networked) { if (config.memory || config.networked) {
return; return;
} }
int todo;
// testTwoPhase(false, true); // testTwoPhase(false, true);
// testTwoPhase(false, false); // testTwoPhase(false, false);
testTwoPhase(true, true); testTwoPhase("xaSimple2a", true, true);
testTwoPhase(true, false); testTwoPhase("xaSimple2b", true, false);
} }
private void testTwoPhase(boolean shutdown, boolean commit) throws Exception { private void testTwoPhase(String db, boolean shutdown, boolean commit) throws Exception {
deleteDb("xaSimple"); deleteDb(db);
JdbcDataSource ds = new JdbcDataSource(); JdbcDataSource ds = new JdbcDataSource();
ds.setPassword(getPassword()); ds.setPassword(getPassword());
ds.setUser("sa"); ds.setUser("sa");
// ds.setURL(getURL("xaSimple", true) + ";trace_level_system_out=3"); // ds.setURL(getURL("xaSimple", true) + ";trace_level_system_out=3");
ds.setURL(getURL("xaSimple", true)); ds.setURL(getURL(db, true));
XAConnection xa; XAConnection xa;
xa = ds.getXAConnection(); xa = ds.getXAConnection();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论