|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.opensubsystems.core.persist.db.DatabaseTest
org.opensubsystems.core.persist.db.connectionpool.DatabaseConnectionFactoryBaseTest
org.opensubsystems.core.persist.db.connectionpool.PooledDatabaseConnectionFactoryImplBaseTest
org.opensubsystems.core.persist.db.connectionpool.DBCPDatabaseConnectionFactoryTest.DBCPDatabaseConnectionFactoryTestInternal
public static class DBCPDatabaseConnectionFactoryTest.DBCPDatabaseConnectionFactoryTestInternal
Internal class which can be included in other test suites directly without including the above suite. This allows us to group multiple tests together and the execute the DatabaseTestSetup only once
| Field Summary |
|---|
| Fields inherited from class org.opensubsystems.core.persist.db.connectionpool.PooledDatabaseConnectionFactoryImplBaseTest |
|---|
ALL_CONNECTION_COUNT, POOL_WAIT_PERIOD |
| Fields inherited from class org.opensubsystems.core.persist.db.connectionpool.DatabaseConnectionFactoryBaseTest |
|---|
DATASOURCE_NAME_1, DATASOURCE_NAME_2, DATASOURCE_NAME_ADMIN, m_connectionFactory, USERNAME_FOR_DS_2 |
| Fields inherited from class org.opensubsystems.core.persist.db.DatabaseTest |
|---|
DEFAULT_DB_PASSWORD, DEFAULT_DB_USER, DEFAULT_PROPERTY_FILE, m_connection, m_iRequestedConnectionCount, m_transaction |
| Constructor Summary | |
|---|---|
DBCPDatabaseConnectionFactoryTest.DBCPDatabaseConnectionFactoryTestInternal(java.lang.String strTestName)
Create new DBCPDatabaseConnectionFactoryTest. |
|
| Method Summary | |
|---|---|
protected boolean |
containsConnection(java.util.List lstConnections,
java.sql.Connection newConnection)
Method results if new connection is contained within the list of first time requested connections. |
protected void |
setUp()
Set up environment for the test case. |
| Methods inherited from class org.opensubsystems.core.persist.db.connectionpool.PooledDatabaseConnectionFactoryImplBaseTest |
|---|
addItem, testRequestOneMoreCanGrow, testRequestOneMoreCannotGrow, testRequestXReturnX |
| Methods inherited from class org.opensubsystems.core.persist.db.DatabaseTest |
|---|
addDataSource, addDataSource, getDataSourceName, setDataSourceName |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DBCPDatabaseConnectionFactoryTest.DBCPDatabaseConnectionFactoryTestInternal(java.lang.String strTestName)
strTestName - - name of the test| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class PooledDatabaseConnectionFactoryImplBaseTestjava.lang.Exception - - an error has occured during setting up test
protected boolean containsConnection(java.util.List lstConnections,
java.sql.Connection newConnection)
containsConnection in class PooledDatabaseConnectionFactoryImplBaseTestlstConnections - - list of first time requested connectionsnewConnection - - just new requested connection (requested second time)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||