|
||||||||||
| 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
org.apache.commons.pool.TestBaseObjectPool
org.apache.commons.pool.impl.TestStackObjectPool
public class TestStackObjectPool
| Constructor Summary | |
|---|---|
TestStackObjectPool(String testName)
|
|
| Method Summary | |
|---|---|
protected Object |
getNthObject(int n)
|
protected boolean |
isFifo()
|
protected boolean |
isLifo()
|
protected ObjectPool |
makeEmptyPool(int mincap)
|
protected ObjectPool |
makeEmptyPool(PoolableObjectFactory factory)
Create an ObjectPool with the specified factory. |
static junit.framework.Test |
suite()
|
void |
testBorrowFromEmptyPoolWithNullFactory()
|
void |
testBorrowReturnWithSometimesInvalidObjects()
|
void |
testBorrowWithSometimesInvalidObjects()
|
void |
testCanResetFactoryWithoutActiveObjects()
|
void |
testCantResetFactoryWithActiveObjects()
|
void |
testIdleCap()
|
void |
testPoolWithNullFactory()
|
void |
testReturnObjectDiscardOrder()
|
void |
testSetFactory()
|
void |
testVariousConstructors()
|
| Methods inherited from class org.apache.commons.pool.TestBaseObjectPool |
|---|
testBaseAddObject, testBaseBorrow, testBaseBorrowReturn, testBaseClear, testBaseClosePool, testBaseInvalidateObject, testBaseNumActiveNumIdle, testClose, testUnsupportedOperations |
| Methods inherited from class org.apache.commons.pool.TestObjectPool |
|---|
testClosedPoolBehavior, testPOFAddObjectUsage, testPOFBorrowObjectUsages, testPOFClearUsages, testPOFCloseUsages, testPOFInvalidateObjectUsages, testPOFReturnObjectUsages, testToString |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 TestStackObjectPool(String testName)
| Method Detail |
|---|
public static junit.framework.Test suite()
protected ObjectPool makeEmptyPool(int mincap)
makeEmptyPool in class TestBaseObjectPoolprotected ObjectPool makeEmptyPool(PoolableObjectFactory factory)
TestObjectPoolObjectPool 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.
makeEmptyPool in class TestBaseObjectPoolprotected Object getNthObject(int n)
getNthObject in class TestBaseObjectPool
public void testIdleCap()
throws Exception
Exception
public void testPoolWithNullFactory()
throws Exception
Exception
public void testBorrowFromEmptyPoolWithNullFactory()
throws Exception
Exception
public void testSetFactory()
throws Exception
testSetFactory in class TestObjectPoolException
public void testCantResetFactoryWithActiveObjects()
throws Exception
Exception
public void testCanResetFactoryWithoutActiveObjects()
throws Exception
Exception
public void testBorrowWithSometimesInvalidObjects()
throws Exception
Exception
public void testBorrowReturnWithSometimesInvalidObjects()
throws Exception
Exception
public void testVariousConstructors()
throws Exception
Exception
public void testReturnObjectDiscardOrder()
throws Exception
Exceptionprotected boolean isLifo()
isLifo in class TestBaseObjectPoolprotected boolean isFifo()
isFifo in class TestBaseObjectPool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||