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-28 22:16:05 -0700 (Tue, 28 Nov 2006) $
Author:
Sandy McArthur

Constructor Summary
protected TestKeyedObjectPoolFactory(String name)
           
 
Method Summary
protected static KeyedPoolableObjectFactory createObjectFactory()
           
protected  KeyedObjectPoolFactory makeFactory()
           
protected abstract  KeyedObjectPoolFactory makeFactory(KeyedPoolableObjectFactory objectFactory)
           
 void testCreatePool()
           
 void testToString()
           
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
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 makeFactory()
                                      throws UnsupportedOperationException
Throws:
UnsupportedOperationException - when this is unsupported by this KeyedPoolableObjectFactory type.

makeFactory

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

createObjectFactory

protected static KeyedPoolableObjectFactory createObjectFactory()

testCreatePool

public void testCreatePool()
                    throws Exception
Throws:
Exception

testToString

public void testToString()


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