|
||||||||||
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.TestKeyedObjectPool
public abstract class TestKeyedObjectPool
Abstract TestCase
for ObjectPool
implementations.
Nested Class Summary | |
---|---|
protected static class |
TestKeyedObjectPool.FailingKeyedPoolableObjectFactory
|
Field Summary | |
---|---|
protected String |
KEY
|
Constructor Summary | |
---|---|
TestKeyedObjectPool(String testName)
|
Method Summary | |
---|---|
protected abstract KeyedObjectPool |
makeEmptyPool(KeyedPoolableObjectFactory factory)
Create an KeyedObjectPool with the specified factory. |
void |
testClosedPoolBehavior()
|
void |
testKPOFAddObjectUsage()
|
void |
testKPOFBorrowObjectUsages()
|
void |
testKPOFClearUsages()
|
void |
testKPOFCloseUsages()
|
void |
testKPOFInvalidateObjectUsages()
|
void |
testKPOFReturnObjectUsages()
|
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 |
Field Detail |
---|
protected final String KEY
Constructor Detail |
---|
public TestKeyedObjectPool(String testName)
Method Detail |
---|
protected abstract KeyedObjectPool makeEmptyPool(KeyedPoolableObjectFactory factory)
KeyedObjectPool
with the specified factory.
The pool should be in a default configuration and conform to the expected
behaviors described in KeyedObjectPool
.
Generally speaking there should be no limits on the various object counts.
public void testClosedPoolBehavior() throws Exception
Exception
public void testKPOFAddObjectUsage() throws Exception
Exception
public void testKPOFBorrowObjectUsages() throws Exception
Exception
public void testKPOFReturnObjectUsages() throws Exception
Exception
public void testKPOFInvalidateObjectUsages() throws Exception
Exception
public void testKPOFClearUsages() throws Exception
Exception
public void testKPOFCloseUsages() throws Exception
Exception
public void testToString() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |