|
From: <me...@us...> - 2002-10-04 04:38:03
|
Update of /cvsroot/cayenne/cayenne/src/tests/java/org/objectstyle/cayenne/conn
In directory usw-pr-cvs1:/tmp/cvs-serv28149/src/tests/java/org/objectstyle/cayenne/conn
Modified Files:
PoolManagerTst.java
Log Message:
synchronized connection pool access
Index: PoolManagerTst.java
===================================================================
RCS file: /cvsroot/cayenne/cayenne/src/tests/java/org/objectstyle/cayenne/conn/PoolManagerTst.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- PoolManagerTst.java 8 Sep 2002 23:02:01 -0000 1.1
+++ PoolManagerTst.java 4 Oct 2002 04:37:58 -0000 1.2
@@ -65,9 +65,9 @@
public PoolManagerTst(String name) {
super(name);
- }
-
- public void testDataSourceUrl() throws java.lang.Exception {
+ }
+
+ public void testDataSourceUrl() throws Exception {
String driverName = org.objectstyle.TestMain.getFreshConnInfo().getJdbcDriver();
String url = org.objectstyle.TestMain.getFreshConnInfo().getDataSourceUrl();
@@ -76,27 +76,27 @@
assertEquals(driverName, pm.getJdbcDriver());
}
- public void testPassword() throws java.lang.Exception {
+ public void testPassword() throws Exception {
PoolManager pm = new PoolManager(null, 0, 3, "", "b");
assertEquals("b", pm.getPassword());
}
- public void testUserName() throws java.lang.Exception {
+ public void testUserName() throws Exception {
PoolManager pm = new PoolManager(null, 0, 3, "a", "");
assertEquals("a", pm.getUserName());
}
- public void testMinConnections() throws java.lang.Exception {
+ public void testMinConnections() throws Exception {
PoolManager pm = new PoolManager(null, 0, 3, "", "");
assertEquals(0, pm.getMinConnections());
}
- public void testMaxConnections() throws java.lang.Exception {
+ public void testMaxConnections() throws Exception {
PoolManager pm = new PoolManager(null, 0, 3, "", "");
assertEquals(3, pm.getMaxConnections());
}
- public void testPooling() throws java.lang.Exception {
+ public void testPooling() throws Exception {
DataSourceInfo dsi = TestMain.getFreshConnInfo();
PoolManager pm =
new PoolManager(
|