This commit is contained in:
wenshao
2011-12-01 21:50:05 +08:00
parent 5d7423344e
commit d7ee8d45be
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -19,5 +19,5 @@ public interface VERSION {
public final static int MajorVersion = 0;
public final static int MinorVersion = 1;
public final static int RevisionVersion = 15;
public final static int RevisionVersion = 16;
}
@@ -1237,6 +1237,6 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
@Override
public String getVersion() {
return VERSION.MajorVersion + "." + VERSION.MinorVersion + "." + VERSION.RevisionVersion + "-2011-11-23 13:39";
return VERSION.MajorVersion + "." + VERSION.MinorVersion + "." + VERSION.RevisionVersion + "-2011-12-01 12:13";
}
}
@@ -29,7 +29,7 @@ public class Case0 extends TestCase {
private String user;
private String password;
private String driverClass;
private int initialSize = 10;
private int initialSize = 1;
private int minPoolSize = 1;
private int maxPoolSize = 2;
private int maxActive = 2;
@@ -58,6 +58,7 @@ public class Case0 extends TestCase {
dataSource.setPoolPreparedStatements(true);
dataSource.setUsername(user);
dataSource.setPassword(password);
dataSource.setFilters("stat");
final int LOOP_COUNT = 1000 * 1000;
@@ -67,6 +68,8 @@ public class Case0 extends TestCase {
for (int i = 0; i < LOOP_COUNT; ++i) {
Connection conn = dataSource.getConnection();
conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
Assert.assertEquals(initialSize, dataSource.getCreateCount());