|
||||||||||
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.pool.TestObjectPool
public abstract class TestObjectPool
Abstract TestCase
for ObjectPool
implementations.
Constructor Summary | |
---|---|
TestObjectPool(String testName)
|
Method Summary | |
---|---|
protected abstract ObjectPool |
makeEmptyPool(PoolableObjectFactory factory)
Create an ObjectPool with the specified factory. |
void |
testClosedPoolBehavior()
|
void |
testPOFAddObjectUsage()
|
void |
testPOFBorrowObjectUsages()
|
void |
testPOFClearUsages()
|
void |
testPOFCloseUsages()
|
void |
testPOFInvalidateObjectUsages()
|
void |
testPOFReturnObjectUsages()
|
void |
testSetFactory()
|
void |
testToString()
|
Methods inherited from class junit.framework.TestCase |
---|
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestObjectPool(String testName)
Method Detail |
---|
protected abstract ObjectPool makeEmptyPool(PoolableObjectFactory factory) throws UnsupportedOperationException
ObjectPool
with the specified factory.
The pool should be in a default configuration and conform to the expected
behaviors described in ObjectPool
.
Generally speaking there should be no limits on the various object counts.
UnsupportedOperationException
- if the pool being tested does not follow pool contracts.public void testClosedPoolBehavior() throws Exception
Exception
public void testPOFAddObjectUsage() throws Exception
Exception
public void testPOFBorrowObjectUsages() throws Exception
Exception
public void testPOFReturnObjectUsages() throws Exception
Exception
public void testPOFInvalidateObjectUsages() throws Exception
Exception
public void testPOFClearUsages() throws Exception
Exception
public void testPOFCloseUsages() throws Exception
Exception
public void testSetFactory() throws Exception
Exception
public void testToString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |