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: 1084639 $ $Date: 2011-03-23 10:02:42 -0700 (Wed, 23 Mar 2011) $
Author:
Dirk Verbeeck, Sandy McArthur

Nested Class Summary
static class TestSoftRefOutOfMemory.LargePoolableObjectFactory
           
static class TestSoftRefOutOfMemory.SmallPoolableObjectFactory
           
 
Constructor Summary
TestSoftRefOutOfMemory(String testName)
           
 
Method Summary
 void tearDown()
           
 void testOutOfMemory()
           
 void testOutOfMemory1000()
           
 void testOutOfMemoryError()
          Makes sure an OutOfMemoryError isn't swallowed.
 void testOutOfMemoryLarge()
           
 
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, toString
 
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

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-2014 The Apache Software Foundation. All Rights Reserved.