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

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

public class FailFastPoolConnectionManagerTest
extends NoTemplate

FailFastPoolConnectionManager test class.

Author:
Mathieu Peltier
See Also:
FailFastPoolConnectionManager, Serialized Form

Field Summary
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.
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
logger, TEXT_DIR
 
Constructor Summary
FailFastPoolConnectionManagerTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testGetConnection()
           
 void testReleaseConnection()
           
 
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

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.

Constructor Detail

FailFastPoolConnectionManagerTest

public FailFastPoolConnectionManagerTest()
Method Detail

setUp

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

tearDown

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

testGetConnection

public void testGetConnection()
                       throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
FailFastPoolConnectionManager.getConnection()

testReleaseConnection

public void testReleaseConnection()
                           throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
FailFastPoolConnectionManager.releaseConnection(Connection)


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