|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
org.objectweb.cjdbc.scenario.templates.NoTemplate
org.objectweb.cjdbc.scenario.standalone.connection.VariablePoolConnectionManagerTest
VariablePoolConnectionManager
test class.
RandomWaitPoolConnectionManager
,
Serialized FormField Summary | |
private MockDriver |
mockDriver
Fake driver. |
private VariablePoolConnectionManager |
pool
Variable pool connection manager pool to test. |
Fields inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate |
logger, TEXT_DIR |
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)
Starts a new test |
protected void |
setUp()
|
static Test |
suite()
Builds a new TestSuite |
protected void |
tearDown()
|
void |
testGetAndReleaseConnection()
|
void |
testRemoveIdleConnectionsThread()
|
void |
testWaitTimeoutFeature()
Test of the wait timeout feature. |
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 |
private MockDriver mockDriver
private VariablePoolConnectionManager pool
Constructor Detail |
public VariablePoolConnectionManagerTest()
Method Detail |
public static Test suite()
public static void main(java.lang.String[] args)
args
- test parametersprotected void setUp()
junit.framework.TestCase#setUp()
protected void tearDown()
junit.framework.TestCase#tearDown()
private void initializePool(int initPoolSize, int minPoolSize, int maxPoolSize, int idleTimeout, int waitTimeout)
VariablePoolConnectionManager
.
initPoolSize
- init pool size.minPoolSize
- min pool size.maxPoolSize
- max pool size.idleTimeout
- idle timeoutwaitTimeout
- wait timeout.public void testWaitTimeoutFeature() throws java.lang.Exception
java.lang.Exception
- if an error occurspublic void testGetAndReleaseConnection() throws java.lang.Exception
java.lang.Exception
- if an error occursVariablePoolConnectionManager.releaseConnection(Connection)
,
VariablePoolConnectionManager.getConnection()
public void testRemoveIdleConnectionsThread() throws java.lang.Exception
java.lang.Exception
VariablePoolConnectionManager.RemoveIdleConnectionsThread
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |