org.objectweb.cjdbc.controller.connection
Class RandomWaitPoolConnectionManagerTest

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

public class RandomWaitPoolConnectionManagerTest
extends TestCase

RandomWaitPoolConnectionManager 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 #testRandomWaitPoolConnectionManager test.
private  MockDriver mockDriver
          Fake driver.
private  RandomWaitPoolConnectionManager pool
          Random wait connection manager pool to test.
 
Constructor Summary
RandomWaitPoolConnectionManagerTest()
           
 
Method Summary
private  void initializePool(int poolSize, int timeout)
          Creates and initializes a RandomWaitoolConnectionManager.
static void main(java.lang.String[] args)
           
protected  void setUp()
           
static Test suite()
           
protected  void tearDown()
           
 void testGetAndReleaseConnection()
           
 
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 RandomWaitPoolConnectionManager pool
Random wait connection manager pool to test.


error

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

Constructor Detail

RandomWaitPoolConnectionManagerTest

public RandomWaitPoolConnectionManagerTest()
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 poolSize,
                            int timeout)
Creates and initializes a RandomWaitoolConnectionManager.

Parameters:
poolSize - pool size.
timeout - timeout.

testGetAndReleaseConnection

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


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