org.objectweb.cjdbc.scenario.standalone.connection
Class AbstractPoolConnectionManagerTest

java.lang.Object
  extended byTestCase
      extended byorg.objectweb.cjdbc.scenario.templates.NoTemplate
          extended byorg.objectweb.cjdbc.scenario.standalone.connection.AbstractPoolConnectionManagerTest

public class AbstractPoolConnectionManagerTest
extends NoTemplate

AbstractPoolConnectionManager test class.

Author:
Mathieu Peltier
See Also:
AbstractPoolConnectionManager, Serialized Form

Nested Class Summary
 class AbstractPoolConnectionManagerTest.MockPoolConnectionManager
          Mock pool connection manager (minimum implementation of the AbstractPoolConnectionManager class).
 class AbstractPoolConnectionManagerTest.MyMockDriver
          Mock driver.
 
Field Summary
private  java.util.Vector activeConnections
          Active connections contained in the pool.
private  java.util.Stack freeConnections
          Idle connections contained in the pool.
private  MockDriver mockDriver
          Fake driver.
private  AbstractPoolConnectionManager pool
          Pool manager to test.
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
logger, TEXT_DIR
 
Constructor Summary
AbstractPoolConnectionManagerTest()
           
 
Method Summary
private  void initializePool(int maxConnectionNumber, int requestedPoolSize)
          Creates and initializes a VariablePoolConnectionManager.
 void testFinalizeConnections()
           
 void testInitializeConnections()
           
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
getTextPath, getUserDir
 
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 AbstractPoolConnectionManager pool
Pool manager to test.


freeConnections

private java.util.Stack freeConnections
Idle connections contained in the pool.


activeConnections

private java.util.Vector activeConnections
Active connections contained in the pool.

Constructor Detail

AbstractPoolConnectionManagerTest

public AbstractPoolConnectionManagerTest()
Method Detail

initializePool

private void initializePool(int maxConnectionNumber,
                            int requestedPoolSize)
Creates and initializes a VariablePoolConnectionManager.

Parameters:
maxConnectionNumber - maximum number of connection allowed by the driver.
requestedPoolSize - requested pool size.

testInitializeConnections

public void testInitializeConnections()
See Also:
AbstractPoolConnectionManager.initializeConnections()

testFinalizeConnections

public void testFinalizeConnections()
See Also:
AbstractPoolConnectionManager.finalizeConnections()


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