org.apache.commons.performance.pool
Class PoolSoakTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.performance.pool.PoolSoakTest
All Implemented Interfaces:
junit.framework.Test

public class PoolSoakTest
extends junit.framework.TestCase


Field Summary
protected  org.apache.commons.performance.pool.PoolSoak poolSoak
           
 
Constructor Summary
PoolSoakTest(String name)
           
 
Method Summary
protected  InputStream getInputStream(String name)
          Return an appropriate InputStream for the specified test file (which must be inside our current package).
 void setUp()
           
static junit.framework.Test suite()
           
 void testAbandonedObjectPoolConfig()
           
 void testGenericObjectPoolConfig()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

poolSoak

protected org.apache.commons.performance.pool.PoolSoak poolSoak
Constructor Detail

PoolSoakTest

public PoolSoakTest(String name)
Method Detail

suite

public static junit.framework.Test suite()

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

testGenericObjectPoolConfig

public void testGenericObjectPoolConfig()
                                 throws Exception
Throws:
Exception

testAbandonedObjectPoolConfig

public void testAbandonedObjectPoolConfig()
                                   throws Exception
Throws:
Exception

getInputStream

protected InputStream getInputStream(String name)
                              throws IOException
Return an appropriate InputStream for the specified test file (which must be inside our current package). Borrowed from Commons Digester RuleTestCase.

Parameters:
name - Name of the test file we want
Throws:
IOException - if an input/output error occurs


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.