|
||||||||||
| 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.apache.commons.dbcp.TestConnectionPool
org.apache.commons.dbcp.datasources.TestSharedPoolDataSource
public class TestSharedPoolDataSource
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.commons.dbcp.TestConnectionPool |
|---|
TestConnectionPool.PoolTest |
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.dbcp.TestConnectionPool |
|---|
connections |
| Constructor Summary | |
|---|---|
TestSharedPoolDataSource(String testName)
|
|
| Method Summary | |
|---|---|
protected Connection |
getConnection()
|
void |
setUp()
|
static junit.framework.Test |
suite()
|
void |
testBackPointers()
|
void |
testChangePassword()
|
void |
testClosePool()
Test pool close. |
void |
testClosing()
|
void |
testClosingWithUserName()
|
void |
testIncorrectPassword()
Switching 'u1 -> 'u2' and 'p1' -> 'p2' will exhibit the bug detailed in http://issues.apache.org/bugzilla/show_bug.cgi?id=18905 Starting with a successful connection, then incorrect password, then correct password for same user illustrates JIRA: DBCP-245 |
void |
testMaxActive()
|
void |
testMaxWait()
|
void |
testMultipleThreads1()
|
void |
testMultipleThreads2()
|
void |
testOpening()
|
void |
testPoolPreparedStatements()
|
void |
testPoolPrepareStatement()
|
void |
testSimple()
|
void |
testSimple2()
|
void |
testSimpleWithUsername()
|
void |
testTransactionIsolationBehavior()
|
| 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 TestSharedPoolDataSource(String testName)
| Method Detail |
|---|
public static junit.framework.Test suite()
protected Connection getConnection()
throws Exception
getConnection in class TestConnectionPoolException
public void setUp()
throws Exception
setUp in class junit.framework.TestCaseException
public void testBackPointers()
throws Exception
testBackPointers in class TestConnectionPoolException
public void testIncorrectPassword()
throws Exception
Exception
public void testSimple()
throws Exception
testSimple in class TestConnectionPoolException
public void testSimpleWithUsername()
throws Exception
Exception
public void testClosingWithUserName()
throws Exception
Exception
public void testSimple2()
throws Exception
testSimple2 in class TestConnectionPoolException
public void testOpening()
throws Exception
testOpening in class TestConnectionPoolException
public void testClosing()
throws Exception
testClosing in class TestConnectionPoolException
public void testClosePool()
throws Exception
Exception
public void testMaxActive()
throws Exception
testMaxActive in class TestConnectionPoolException
public void testMaxWait()
throws Exception
Exception
public void testMultipleThreads1()
throws Exception
Exception
public void testMultipleThreads2()
throws Exception
Exception
public void testTransactionIsolationBehavior()
throws Exception
Exception
public void testPoolPrepareStatement()
throws Exception
Exception
public void testPoolPreparedStatements()
throws Exception
Exception
public void testChangePassword()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||