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

--no commit message

--no commit message
上级 4e085985
...@@ -183,7 +183,7 @@ public class Sentence { ...@@ -183,7 +183,7 @@ public class Sentence {
* @param query the query string * @param query the query string
*/ */
public void setQuery(String query) { public void setQuery(String query) {
if (!this.query.equals(query)) { if (!StringUtils.equals(this.query, query)) {
this.query = query; this.query = query;
this.queryUpper = StringUtils.toUpperEnglish(query); this.queryUpper = StringUtils.toUpperEnglish(query);
} }
......
...@@ -13,6 +13,15 @@ import org.h2.tools.Server; ...@@ -13,6 +13,15 @@ import org.h2.tools.Server;
* Tests the H2 Console application. * Tests the H2 Console application.
*/ */
public class TestWeb extends TestBase { public class TestWeb extends TestBase {
/**
* Run just this test.
*
* @param a ignored
*/
public static void main(String[] a) throws Exception {
TestBase.createCaller().init().test();
}
public void test() throws Exception { public void test() throws Exception {
Server server = Server.createWebServer(new String[]{"-webPort", "8182"}); Server server = Server.createWebServer(new String[]{"-webPort", "8182"});
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论