org.apache.commons.pool.impl
Class TestSoftReferenceObjectPool

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<String>
                  extended by org.apache.commons.pool.impl.TestSoftReferenceObjectPool
All Implemented Interfaces:
junit.framework.Test

public class TestSoftReferenceObjectPool
extends TestBaseObjectPool<String>

Version:
$Revision: 1222396 $ $Date: 2011-12-22 14:02:25 -0500 (Thu, 22 Dec 2011) $
Author:
Rodney Waldhoff, Sandy McArthur

Constructor Summary
TestSoftReferenceObjectPool(String testName)
           
 
Method Summary
protected  String getNthObject(int n)
           
protected  boolean isFifo()
           
protected  boolean isLifo()
           
protected  ObjectPool<String> makeEmptyPool(int cap)
           
protected  ObjectPool<Integer> makeEmptyPool(PoolableObjectFactory<Integer> factory)
          Create an ObjectPool with the specified factory.
 
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, 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

TestSoftReferenceObjectPool

public TestSoftReferenceObjectPool(String testName)
Method Detail

makeEmptyPool

protected ObjectPool<String> makeEmptyPool(int cap)
Overrides:
makeEmptyPool in class TestBaseObjectPool<String>

makeEmptyPool

protected ObjectPool<Integer> makeEmptyPool(PoolableObjectFactory<Integer> 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.

Overrides:
makeEmptyPool in class TestBaseObjectPool<String>

getNthObject

protected String getNthObject(int n)
Overrides:
getNthObject in class TestBaseObjectPool<String>

isLifo

protected boolean isLifo()
Overrides:
isLifo in class TestBaseObjectPool<String>

isFifo

protected boolean isFifo()
Overrides:
isFifo in class TestBaseObjectPool<String>


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.