org.logicalcobwebs.proxool
Class HouseKeeperTest

java.lang.Object
  extended by TestCase
      extended by org.logicalcobwebs.proxool.AbstractProxoolTest
          extended by org.logicalcobwebs.proxool.HouseKeeperTest

public class HouseKeeperTest
extends AbstractProxoolTest

Test the house keeper in ConnectionPool

Since:
Proxool 0.8
Version:
$Revision: 1.11 $, $Date: 2005/10/07 08:11:34 $
Author:
bill, $Author: billhorsman $ (current maintainer)

Field Summary
private static Log LOG
           
 
Constructor Summary
HouseKeeperTest(java.lang.String alias)
           
 
Method Summary
 void testBeforeAndAfterUse()
           
 void testHouseKeeperTestSql()
          Test that house keeper destroys connections that fail configured the test sql
 void testInvalidAfterUse()
          Test that house keeper destroys connections that fail configured the test sql
 void testInvalidBeforeUse()
          Test that house keeper destroys connections that fail configured the test sql
 void testMaximumActiveTime()
          Test that connections that remain active for longer than the configured time are closed (and destroyed) automatically.
 void testMaximumActiveTimeWithResetFailure()
          Test that connections that remain active for longer than the configured time are closed (and destroyed) automatically.
 
Methods inherited from class org.logicalcobwebs.proxool.AbstractProxoolTest
setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Log LOG
Constructor Detail

HouseKeeperTest

public HouseKeeperTest(java.lang.String alias)
Method Detail

testMaximumActiveTime

public void testMaximumActiveTime()
                           throws java.lang.Exception
Test that connections that remain active for longer than the configured time are closed (and destroyed) automatically.

Throws:
java.lang.Exception

testMaximumActiveTimeWithResetFailure

public void testMaximumActiveTimeWithResetFailure()
                                           throws java.lang.Exception
Test that connections that remain active for longer than the configured time are closed (and destroyed) automatically. Also, it gets errors during reset. We don't want the connectionCount to be decremented twice.

Throws:
java.lang.Exception

testHouseKeeperTestSql

public void testHouseKeeperTestSql()
                            throws java.lang.Exception
Test that house keeper destroys connections that fail configured the test sql

Throws:
java.lang.Exception

testInvalidBeforeUse

public void testInvalidBeforeUse()
                          throws java.lang.Exception
Test that house keeper destroys connections that fail configured the test sql

Throws:
java.lang.Exception

testInvalidAfterUse

public void testInvalidAfterUse()
                         throws java.lang.Exception
Test that house keeper destroys connections that fail configured the test sql

Throws:
java.lang.Exception

testBeforeAndAfterUse

public void testBeforeAndAfterUse()
                           throws java.lang.Exception
Throws:
java.lang.Exception