提交 1233786b authored 作者: Thomas Mueller's avatar Thomas Mueller

Improve code coverage.

上级 8598d553
...@@ -94,7 +94,7 @@ class WebThread extends WebApp implements Runnable { ...@@ -94,7 +94,7 @@ class WebThread extends WebApp implements Runnable {
break; break;
} }
} }
} catch (IOException e) { } catch (Exception e) {
TraceSystem.traceThrowable(e); TraceSystem.traceThrowable(e);
} }
IOUtils.closeSilently(output); IOUtils.closeSilently(output);
......
...@@ -386,7 +386,7 @@ public class Shell extends Tool implements Runnable { ...@@ -386,7 +386,7 @@ public class Shell extends Tool implements Runnable {
} }
println("[Enter] " + url); println("[Enter] " + url);
print("URL "); print("URL ");
url = readLine(url); url = readLine(url).trim();
if (driver == null) { if (driver == null) {
driver = JdbcUtils.getDriver(url); driver = JdbcUtils.getDriver(url);
} }
...@@ -394,7 +394,7 @@ public class Shell extends Tool implements Runnable { ...@@ -394,7 +394,7 @@ public class Shell extends Tool implements Runnable {
println("[Enter] " + driver); println("[Enter] " + driver);
} }
print("Driver "); print("Driver ");
driver = readLine(driver); driver = readLine(driver).trim();
println("[Enter] " + user); println("[Enter] " + user);
print("User "); print("User ");
user = readLine(user); user = readLine(user);
......
...@@ -136,7 +136,9 @@ public class TestShell extends TestBase { ...@@ -136,7 +136,9 @@ public class TestShell extends TestBase {
read("(1 row,"); read("(1 row,");
testOut.println("select error;"); testOut.println("select error;");
read("sql> Error:"); read("sql> Error:");
read("select error"); if (read("").startsWith("Column \"ERROR\" not found")) {
read("");
}
testOut.println("create table test(id int primary key, name varchar)\n;"); testOut.println("create table test(id int primary key, name varchar)\n;");
read("sql> ...>"); read("sql> ...>");
testOut.println("show public"); testOut.println("show public");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论