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: 480413 $ $Date: 2006-11-29 00:16:05 -0500 (Wed, 29 Nov 2006) $
Author:
Sandy McArthur

Constructor Summary
protected TestKeyedObjectPoolFactory(String name)
           
 
Method Summary
protected static org.apache.commons.pool.KeyedPoolableObjectFactory createObjectFactory()
           
protected  org.apache.commons.pool.KeyedObjectPoolFactory makeFactory()
           
protected abstract  org.apache.commons.pool.KeyedObjectPoolFactory makeFactory(org.apache.commons.pool.KeyedPoolableObjectFactory 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 org.apache.commons.pool.KeyedObjectPoolFactory makeFactory()
                                                              throws UnsupportedOperationException
Throws:
UnsupportedOperationException - when this is unsupported by this KeyedPoolableObjectFactory type.

makeFactory

protected abstract org.apache.commons.pool.KeyedObjectPoolFactory makeFactory(org.apache.commons.pool.KeyedPoolableObjectFactory objectFactory)
                                                                       throws UnsupportedOperationException
Throws:
UnsupportedOperationException - when this is unsupported by this KeyedPoolableObjectFactory type.

createObjectFactory

protected static org.apache.commons.pool.KeyedPoolableObjectFactory createObjectFactory()

testCreatePool

public void testCreatePool()
                    throws Exception
Throws:
Exception

testToString

public void testToString()


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