org.apache.commons.pool
Class TestKeyedObjectPoolFactory

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.pool.TestKeyedObjectPoolFactory
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
TestGenericKeyedObjectPoolFactory, TestStackKeyedObjectPoolFactory

public abstract class TestKeyedObjectPoolFactory
extends junit.framework.TestCase

Tests for all KeyedObjectPoolFactorys.

Version:
$Revision: 1221705 $ $Date: 2011-12-21 08:03:54 -0500 (Wed, 21 Dec 2011) $
Author:
Sandy McArthur

Constructor Summary
protected TestKeyedObjectPoolFactory(String name)
           
 
Method Summary
protected static KeyedPoolableObjectFactory<Object,Integer> createObjectFactory()
           
protected  KeyedObjectPoolFactory<Object,Integer> makeFactory()
           
protected abstract  KeyedObjectPoolFactory<Object,Integer> makeFactory(KeyedPoolableObjectFactory<Object,Integer> objectFactory)
           
 void testCreatePool()
           
 void 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

TestKeyedObjectPoolFactory

protected TestKeyedObjectPoolFactory(String name)
Method Detail

makeFactory

protected KeyedObjectPoolFactory<Object,Integer> makeFactory()
                                                      throws UnsupportedOperationException
Throws:
UnsupportedOperationException - when this is unsupported by this KeyedPoolableObjectFactory type.

makeFactory

protected abstract KeyedObjectPoolFactory<Object,Integer> makeFactory(KeyedPoolableObjectFactory<Object,Integer> objectFactory)
                                                               throws UnsupportedOperationException
Throws:
UnsupportedOperationException - when this is unsupported by this KeyedPoolableObjectFactory type.

createObjectFactory

protected static KeyedPoolableObjectFactory<Object,Integer> createObjectFactory()

testCreatePool

public void testCreatePool()
                    throws Exception
Throws:
Exception

testToString

public void testToString()


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