org.objectweb.cjdbc.controller.connection
Class VariablePoolConnectionManagerTest

java.lang.Object
  extended byTestCase
      extended byorg.objectweb.cjdbc.controller.connection.VariablePoolConnectionManagerTest

public class VariablePoolConnectionManagerTest
extends TestCase

VariablePoolConnectionManager test class.

Author:
Mathieu Peltier
See Also:
RandomWaitPoolConnectionManager, Serialized Form

Field Summary
private  java.lang.Error error
          Last AssertionFailedError eventually thrown by the clients in the #testVariablePoolConnectionManager test.
private  MockDriver mockDriver
          Fake driver.
private  VariablePoolConnectionManager pool
          Variable pool connection manager pool to test.
 
Constructor Summary
VariablePoolConnectionManagerTest()
           
 
Method Summary
private  void initializePool(int initPoolSize, int minPoolSize, int maxPoolSize, int idleTimeout, int waitTimeout)
          Creates and initializes a VariablePoolConnectionManager.
static void main(java.lang.String[] args)
           
protected  void setUp()
           
static Test suite()
           
protected  void tearDown()
           
 void testGetAndReleaseConnection()
           
 void testRemoveIdleConnectionsThread()
           
 void testWaitTimeoutFeature()
          Test of the wait timeout feature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mockDriver

private MockDriver mockDriver
Fake driver.


pool

private VariablePoolConnectionManager pool
Variable pool connection manager pool to test.


error

private java.lang.Error error
Last AssertionFailedError eventually thrown by the clients in the #testVariablePoolConnectionManager test.

Constructor Detail

VariablePoolConnectionManagerTest

public VariablePoolConnectionManagerTest()
Method Detail

suite

public static Test suite()

main

public static void main(java.lang.String[] args)

setUp

protected void setUp()
See Also:
junit.framework.TestCase#setUp()

tearDown

protected void tearDown()
See Also:
junit.framework.TestCase#tearDown()

initializePool

private void initializePool(int initPoolSize,
                            int minPoolSize,
                            int maxPoolSize,
                            int idleTimeout,
                            int waitTimeout)
Creates and initializes a VariablePoolConnectionManager.

Parameters:
initPoolSize - init pool size.
minPoolSize - min pool size.
maxPoolSize - max pool size.
idleTimeout - idle timeout
waitTimeout - wait timeout.

testWaitTimeoutFeature

public void testWaitTimeoutFeature()
Test of the wait timeout feature.


testGetAndReleaseConnection

public void testGetAndReleaseConnection()
See Also:
VariablePoolConnectionManager.releaseConnection(Connection), VariablePoolConnectionManager.getConnection()

testRemoveIdleConnectionsThread

public void testRemoveIdleConnectionsThread()
See Also:
VariablePoolConnectionManager.RemoveIdleConnectionsThread


Copyright © 2002, 2003 - ObjectWeb Consortium - All Rights Reserved.