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

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

TestObjectPoolFactory

protected TestObjectPoolFactory(String name)
Method Detail

makeFactory

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

makeFactory

protected abstract org.apache.commons.pool.ObjectPoolFactory makeFactory(org.apache.commons.pool.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-2009 Apache Software Foundation. All Rights Reserved.