org.objectweb.cjdbc.controller.connection
Class FailFastPoolConnectionManagerTest

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

public class FailFastPoolConnectionManagerTest
extends TestCase

FailFastPoolConnectionManager test class.

Author:
Mathieu Peltier
See Also:
FailFastPoolConnectionManager, Serialized Form

Field Summary
private  java.lang.Error error
          Last AssertionFailedError eventually thrown by the clients in the #testFailFastPoolConnectionManager test.
private  MockDriver mockDriver
          Fake driver.
private  FailFastPoolConnectionManager pool
          Fail fast pool connection manager pool to test.
private static int POOL_SIZE
          Pool size to use for the test.
 
Constructor Summary
FailFastPoolConnectionManagerTest()
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
           
static Test suite()
           
protected  void tearDown()
           
 void testGetConnection()
           
 void testReleaseConnection()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POOL_SIZE

private static final int POOL_SIZE
Pool size to use for the test.

See Also:
Constant Field Values

mockDriver

private MockDriver mockDriver
Fake driver.


pool

private FailFastPoolConnectionManager pool
Fail fast pool connection manager pool to test.


error

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

Constructor Detail

FailFastPoolConnectionManagerTest

public FailFastPoolConnectionManagerTest()
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()

testGetConnection

public void testGetConnection()
See Also:
FailFastPoolConnectionManager.getConnection()

testReleaseConnection

public void testReleaseConnection()
See Also:
FailFastPoolConnectionManager.releaseConnection(Connection)


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