org.logicalcobwebs.proxool
Class HouseKeeperTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.logicalcobwebs.proxool.AbstractProxoolTest
              extended byorg.logicalcobwebs.proxool.HouseKeeperTest
All Implemented Interfaces:
junit.framework.Test

public class HouseKeeperTest
extends AbstractProxoolTest

Test the house keeper in ConnectionPool

Since:
Proxool 0.8
Version:
$Revision: 1.8 $, $Date: 2003/09/30 18:40:16 $
Author:
bill, $Author: billhorsman $ (current maintainer)

Field Summary
private static Log LOG
           
 
Fields inherited from class org.logicalcobwebs.proxool.AbstractProxoolTest
 
Fields inherited from class junit.framework.TestCase
 
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.
 
Methods inherited from class org.logicalcobwebs.proxool.AbstractProxoolTest
setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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

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