org.apache.commons.pool
Class TestObjectPoolFactory

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.pool.TestObjectPoolFactory
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
TestGenericObjectPoolFactory, TestStackObjectPoolFactory

public abstract class TestObjectPoolFactory
extends junit.framework.TestCase

Unit tests for all ObjectPoolFactory.

Version:
$Revision: 480413 $ $Date: 2006-11-28 22:16:05 -0700 (Tue, 28 Nov 2006) $
Author:
Sandy McArthur

Constructor Summary
protected TestObjectPoolFactory(String name)
           
 
Method Summary
protected  ObjectPoolFactory makeFactory()
           
protected abstract  ObjectPoolFactory makeFactory(PoolableObjectFactory 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

TestObjectPoolFactory

protected TestObjectPoolFactory(String name)
Method Detail

makeFactory

protected ObjectPoolFactory makeFactory()
                                 throws UnsupportedOperationException
Throws:
UnsupportedOperationException - when this is unsupported by this PoolableObjectFactory type.

makeFactory

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

testCreatePool

public void testCreatePool()
                    throws Exception
Throws:
Exception

testToString

public void testToString()


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