Update of /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool
In directory sc8-pr-cvs1:/tmp/cvs-serv5596
Modified Files:
HouseKeeperTest.java
Log Message:
New test for house-keeper-test-sql
Index: HouseKeeperTest.java
===================================================================
RCS file: /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool/HouseKeeperTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** HouseKeeperTest.java 4 Mar 2003 10:24:40 -0000 1.6
--- HouseKeeperTest.java 11 Sep 2003 23:58:05 -0000 1.7
***************
*** 83,88 ****
String alias = testName;
! // TODO complete this test
}
--- 83,105 ----
String alias = testName;
! String url = TestHelper.buildProxoolUrl(alias,
! TestConstants.HYPERSONIC_DRIVER,
! TestConstants.HYPERSONIC_TEST_URL);
! Properties info = new Properties();
! info.setProperty(ProxoolConstants.USER_PROPERTY, TestConstants.HYPERSONIC_USER);
! info.setProperty(ProxoolConstants.PASSWORD_PROPERTY, TestConstants.HYPERSONIC_PASSWORD);
! info.setProperty(ProxoolConstants.HOUSE_KEEPING_TEST_SQL_PROPERTY, "SELECT NOW");
! info.setProperty(ProxoolConstants.HOUSE_KEEPING_SLEEP_TIME_PROPERTY, "1000");
! ProxoolFacade.registerConnectionPool(url, info);
!
! DriverManager.getConnection(url).close();
+ try {
+ Thread.sleep(3000);
+ } catch (InterruptedException e) {
+ LOG.debug("Awoken.");
+ }
+
+ DriverManager.getConnection(url).close();
}
***************
*** 93,96 ****
--- 110,116 ----
Revision history:
$Log$
+ Revision 1.7 2003/09/11 23:58:05 billhorsman
+ New test for house-keeper-test-sql
+
Revision 1.6 2003/03/04 10:24:40 billhorsman
removed try blocks around each test
|