org.logicalcobwebs.proxool
Class ConnectionPoolTest

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

public class ConnectionPoolTest
extends AbstractProxoolTest

Test ConnectionPool

Since:
Proxool 0.8
Version:
$Revision: 1.2 $, $Date: 2004/06/02 21:05:19 $
Author:
billhorsman, $Author: billhorsman $ (current maintainer)

Nested Class Summary
(package private)  class ConnectionPoolTest.Closer
           
 
Field Summary
private static Log LOG
           
 
Constructor Summary
ConnectionPoolTest(java.lang.String name)
           
 
Method Summary
 void testMaximumConnectionCount()
          If we ask for more simultaneous connections then we have allowed we should gracefully refuse them.
 void testMaximumEqualsMinimumConnectionCount()
          test what happens if maximum = minimum = 1
 void testShutdownImpatience()
          Checks whether shutdown is impatient enough to shutdown even if some connections are still active
 void testShutdownPatience()
          Checks whether shutdown is patient enough to wait for active connections
 
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

ConnectionPoolTest

public ConnectionPoolTest(java.lang.String name)
Method Detail

testMaximumConnectionCount

public void testMaximumConnectionCount()
                                throws java.lang.Exception
If we ask for more simultaneous connections then we have allowed we should gracefully refuse them.

Throws:
java.lang.Exception

testMaximumEqualsMinimumConnectionCount

public void testMaximumEqualsMinimumConnectionCount()
                                             throws java.lang.Exception
test what happens if maximum = minimum = 1

Throws:
java.lang.Exception

testShutdownPatience

public void testShutdownPatience()
                          throws ProxoolException,
                                 java.sql.SQLException
Checks whether shutdown is patient enough to wait for active connections

Throws:
ProxoolException
java.sql.SQLException

testShutdownImpatience

public void testShutdownImpatience()
                            throws ProxoolException,
                                   java.sql.SQLException
Checks whether shutdown is impatient enough to shutdown even if some connections are still active

Throws:
ProxoolException
java.sql.SQLException