org.apache.commons.pool.impl
Class TestSoftRefOutOfMemory

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

public class TestSoftRefOutOfMemory
extends junit.framework.TestCase

Version:
$Revision: 480413 $ $Date: 2006-11-29 00:16:05 -0500 (Wed, 29 Nov 2006) $
Author:
Dirk Verbeeck, Sandy McArthur

Nested Class Summary
static class TestSoftRefOutOfMemory.LargePoolableObjectFactory
           
static class TestSoftRefOutOfMemory.SmallPoolableObjectFactory
           
 
Constructor Summary
TestSoftRefOutOfMemory(String testName)
           
 
Method Summary
static junit.framework.TestSuite suite()
           
 void tearDown()
           
 void testOutOfMemory()
           
 void testOutOfMemory1000()
           
 void testOutOfMemoryError()
          Makes sure an OutOfMemoryError isn't swallowed.
 void testOutOfMemoryLarge()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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

TestSoftRefOutOfMemory

public TestSoftRefOutOfMemory(String testName)
Method Detail

suite

public static junit.framework.TestSuite suite()

tearDown

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

testOutOfMemory

public void testOutOfMemory()
                     throws Exception
Throws:
Exception

testOutOfMemory1000

public void testOutOfMemory1000()
                         throws Exception
Throws:
Exception

testOutOfMemoryLarge

public void testOutOfMemoryLarge()
                          throws Exception
Throws:
Exception

testOutOfMemoryError

public void testOutOfMemoryError()
                          throws Exception
Makes sure an OutOfMemoryError isn't swallowed.

Throws:
Exception


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