补充测试

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@444 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-07-15 05:36:19 +00:00
parent e906c9b4e2
commit 34685651aa
5 changed files with 135 additions and 92 deletions
@@ -33,7 +33,7 @@ public class Case3 extends TestCase {
private String validationQuery = "SELECT 1"; // "SELECT 1";
private int threadCount = 10;
private int TEST_COUNT = 3;
final int LOOP_COUNT = 1000 * 1000;
final int LOOP_COUNT = 1000 * 100;
private boolean testOnBorrow = false;
private String connectionProperties = ""; // "bigStringTryClob=true;clientEncoding=GBK;defaultRowPrefetch=50;serverEncoding=ISO-8859-1";
private String sql = "SELECT 1";
@@ -16,11 +16,11 @@ import com.alibaba.druid.util.JdbcUtils;
public class OracleSQLParserResourceTest extends TestCase {
public void test_0() throws Exception {
for (int i = 0; i <= 53; ++i) {
String resource = "bvt/parser/oracle-" + i + ".txt";
exec_test(resource);
}
// exec_test("bvt/parser/oracle-0.txt");
// for (int i = 0; i <= 53; ++i) {
// String resource = "bvt/parser/oracle-" + i + ".txt";
// exec_test(resource);
// }
exec_test("bvt/parser/oracle-54.txt");
}
public void exec_test(String resource) throws Exception {