|
||||||||||
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
org.apache.commons.pool.TestBaseKeyedObjectPool
public class TestBaseKeyedObjectPool
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.commons.pool.TestKeyedObjectPool |
---|
TestKeyedObjectPool.FailingKeyedPoolableObjectFactory |
Field Summary |
---|
Fields inherited from class org.apache.commons.pool.TestKeyedObjectPool |
---|
KEY |
Constructor Summary | |
---|---|
TestBaseKeyedObjectPool(String testName)
|
Method Summary | |
---|---|
protected Object |
getNthObject(Object key,
int n)
Return what we expect to be the nth object (zero indexed) created by the pool for the given key. |
protected boolean |
isFifo()
|
protected boolean |
isLifo()
|
protected org.apache.commons.pool.KeyedObjectPool |
makeEmptyPool(int mincapacity)
Create an KeyedObjectPool instance
that can contain at least mincapacity
idle and active objects, or
throw IllegalArgumentException
if such a pool cannot be created. |
protected org.apache.commons.pool.KeyedObjectPool |
makeEmptyPool(org.apache.commons.pool.KeyedPoolableObjectFactory factory)
Create an KeyedObjectPool with the specified factory. |
protected Object |
makeKey(int n)
|
void |
setUp()
|
static junit.framework.Test |
suite()
|
void |
tearDown()
|
void |
testBaseAddObject()
|
void |
testBaseBorrow()
|
void |
testBaseBorrowReturn()
|
void |
testBaseClear()
|
void |
testBaseInvalidateObject()
|
void |
testBaseNumActiveNumIdle()
|
void |
testBaseNumActiveNumIdle2()
|
void |
testUnsupportedOperations()
|
Methods inherited from class org.apache.commons.pool.TestKeyedObjectPool |
---|
testClosedPoolBehavior, testKPOFAddObjectUsage, testKPOFBorrowObjectUsages, testKPOFClearUsages, testKPOFCloseUsages, testKPOFInvalidateObjectUsages, testKPOFReturnObjectUsages, testToString |
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, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestBaseKeyedObjectPool(String testName)
Method Detail |
---|
protected org.apache.commons.pool.KeyedObjectPool makeEmptyPool(org.apache.commons.pool.KeyedPoolableObjectFactory factory)
TestKeyedObjectPool
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.
makeEmptyPool
in class TestKeyedObjectPool
protected org.apache.commons.pool.KeyedObjectPool makeEmptyPool(int mincapacity)
KeyedObjectPool
instance
that can contain at least mincapacity
idle and active objects, or
throw IllegalArgumentException
if such a pool cannot be created.
protected Object getNthObject(Object key, int n)
protected Object makeKey(int n)
public static junit.framework.Test suite()
public void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public void testUnsupportedOperations() throws Exception
Exception
protected boolean isLifo()
protected boolean isFifo()
public void testBaseBorrowReturn() throws Exception
Exception
public void testBaseBorrow() throws Exception
Exception
public void testBaseNumActiveNumIdle() throws Exception
Exception
public void testBaseNumActiveNumIdle2() throws Exception
Exception
public void testBaseClear() throws Exception
Exception
public void testBaseInvalidateObject() throws Exception
Exception
public void testBaseAddObject() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |