提交 73a69194 authored 作者: Thomas Mueller's avatar Thomas Mueller

Use words in dictionary

上级 2b0781c4
...@@ -154,8 +154,8 @@ public class TestCallableStatement extends TestBase { ...@@ -154,8 +154,8 @@ public class TestCallableStatement extends TestBase {
Utils.addClassFactory(myFactory); Utils.addClassFactory(myFactory);
try { try {
Statement stat = conn.createStatement(); Statement stat = conn.createStatement();
stat.execute("CREATE ALIAS TCLASSLOADER FOR \"TestClassFactory.testClassF\""); stat.execute("CREATE ALIAS T_CLASSLOADER FOR \"TestClassFactory.testClassF\"");
ResultSet rs = stat.executeQuery("SELECT TCLASSLOADER(true)"); ResultSet rs = stat.executeQuery("SELECT T_CLASSLOADER(true)");
assertTrue(rs.next()); assertTrue(rs.next());
assertEquals(false, rs.getBoolean(1)); assertEquals(false, rs.getBoolean(1));
} finally { } finally {
...@@ -191,12 +191,12 @@ public class TestCallableStatement extends TestBase { ...@@ -191,12 +191,12 @@ public class TestCallableStatement extends TestBase {
rs.addRow(a * 2, b.toUpperCase(), new Timestamp(c.getTime() + 1)); rs.addRow(a * 2, b.toUpperCase(), new Timestamp(c.getTime() + 1));
return rs; return rs;
} }
/** /**
* A class factory used for testing. * A class factory used for testing.
*/ */
static class TestClassFactory implements Utils.ClassFactory { static class TestClassFactory implements Utils.ClassFactory {
@Override @Override
public boolean match(String name) { public boolean match(String name) {
return name.equals("TestClassFactory"); return name.equals("TestClassFactory");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论