org.apache.commons.pool
Class TestBaseObjectPool

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.pool.TestObjectPool
              extended by org.apache.commons.pool.TestBaseObjectPool
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
TestGenericObjectPool, TestSoftReferenceObjectPool, TestStackObjectPool

public class TestBaseObjectPool
extends TestObjectPool

Version:
$Revision: 606064 $ $Date: 2007-12-20 19:12:02 -0500 (Thu, 20 Dec 2007) $
Author:
Rodney Waldhoff, Sandy McArthur

Constructor Summary
TestBaseObjectPool(String testName)
           
 
Method Summary
protected  Object getNthObject(int n)
           
protected  boolean isFifo()
           
protected  boolean isLifo()
           
protected  org.apache.commons.pool.ObjectPool makeEmptyPool(int mincapacity)
           
protected  org.apache.commons.pool.ObjectPool makeEmptyPool(org.apache.commons.pool.PoolableObjectFactory factory)
          Create an ObjectPool with the specified factory.
static junit.framework.Test suite()
           
 void testBaseAddObject()
           
 void testBaseBorrow()
           
 void testBaseBorrowReturn()
           
 void testBaseClear()
           
 void testBaseClosePool()
           
 void testBaseInvalidateObject()
           
 void testBaseNumActiveNumIdle()
           
 void testClose()
           
 void testUnsupportedOperations()
           
 
Methods inherited from class org.apache.commons.pool.TestObjectPool
testClosedPoolBehavior, testPOFAddObjectUsage, testPOFBorrowObjectUsages, testPOFClearUsages, testPOFCloseUsages, testPOFInvalidateObjectUsages, testPOFReturnObjectUsages, testSetFactory, 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

TestBaseObjectPool

public TestBaseObjectPool(String testName)
Method Detail

suite

public static junit.framework.Test suite()

makeEmptyPool

protected org.apache.commons.pool.ObjectPool makeEmptyPool(int mincapacity)

makeEmptyPool

protected org.apache.commons.pool.ObjectPool makeEmptyPool(org.apache.commons.pool.PoolableObjectFactory factory)
Description copied from class: TestObjectPool
Create an 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.

Specified by:
makeEmptyPool in class TestObjectPool

getNthObject

protected Object getNthObject(int n)

isLifo

protected boolean isLifo()

isFifo

protected boolean isFifo()

testUnsupportedOperations

public void testUnsupportedOperations()
                               throws Exception
Throws:
Exception

testClose

public void testClose()
               throws Exception
Throws:
Exception

testBaseBorrow

public void testBaseBorrow()
                    throws Exception
Throws:
Exception

testBaseAddObject

public void testBaseAddObject()
                       throws Exception
Throws:
Exception

testBaseBorrowReturn

public void testBaseBorrowReturn()
                          throws Exception
Throws:
Exception

testBaseNumActiveNumIdle

public void testBaseNumActiveNumIdle()
                              throws Exception
Throws:
Exception

testBaseClear

public void testBaseClear()
                   throws Exception
Throws:
Exception

testBaseInvalidateObject

public void testBaseInvalidateObject()
                              throws Exception
Throws:
Exception

testBaseClosePool

public void testBaseClosePool()
                       throws Exception
Throws:
Exception


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.