Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.beanutils
Class BeanificationTestCase  view BeanificationTestCase download BeanificationTestCase.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.commons.beanutils.BeanificationTestCase
All Implemented Interfaces:
junit.framework.Test

public class BeanificationTestCase
extends junit.framework.TestCase

Test Case for changes made during Beanutils Beanification

Version:
$Revision: 1.5 $ $Date: 2004/02/28 13:18:36 $

Nested Class Summary
(package private)  class BeanificationTestCase.Signal
           
(package private)  class BeanificationTestCase.TestClassLoader
           
 
Field Summary
static int MAX_GC_ITERATIONS
          Maximum number of iterations before our test fails
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
BeanificationTestCase(java.lang.String name)
          Construct a new instance of this test case.
 
Method Summary
private  boolean isPre14JVM()
           
 void setUp()
          Set up instance variables required by this test case.
static junit.framework.Test suite()
          Return the tests included in this test suite.
 void tearDown()
          Tear down instance variables required by this test case.
 void testBeanUtilsBeanSetInstance()
          Tests whether different threads can set beanutils instances correctly
 void testContextClassloaderIndependence()
          Tests whether calls are independent for different classloaders
 void testContextClassLoaderLocal()
          Tests whether difference instances are loaded by different context classloaders.
 void testContextClassLoaderUnset()
          Tests whether the unset method works
 void testGetByContextClassLoader()
          Tests whether difference instances are loaded by different context classloaders.
 void testMemoryLeak()
          Tests whether classloaders and beans are released from memory
 void testMemoryLeak2()
          Tests whether classloaders and beans are released from memory by the map used by beanutils
 void testMemoryTestMethodology()
          Test of the methodology we'll use for some of the later tests
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

MAX_GC_ITERATIONS

public static final int MAX_GC_ITERATIONS
Maximum number of iterations before our test fails

See Also:
Constant Field Values
Constructor Detail

BeanificationTestCase

public BeanificationTestCase(java.lang.String name)
Construct a new instance of this test case.

Method Detail

setUp

public void setUp()
Set up instance variables required by this test case.


suite

public static junit.framework.Test suite()
Return the tests included in this test suite.


tearDown

public void tearDown()
Tear down instance variables required by this test case.


testMemoryTestMethodology

public void testMemoryTestMethodology()
                               throws java.lang.Exception
Test of the methodology we'll use for some of the later tests


testMemoryLeak2

public void testMemoryLeak2()
                     throws java.lang.Exception
Tests whether classloaders and beans are released from memory by the map used by beanutils


testMemoryLeak

public void testMemoryLeak()
                    throws java.lang.Exception
Tests whether classloaders and beans are released from memory


testGetByContextClassLoader

public void testGetByContextClassLoader()
                                 throws java.lang.Exception
Tests whether difference instances are loaded by different context classloaders.


testContextClassLoaderLocal

public void testContextClassLoaderLocal()
                                 throws java.lang.Exception
Tests whether difference instances are loaded by different context classloaders.


testContextClassloaderIndependence

public void testContextClassloaderIndependence()
                                        throws java.lang.Exception
Tests whether calls are independent for different classloaders


testBeanUtilsBeanSetInstance

public void testBeanUtilsBeanSetInstance()
                                  throws java.lang.Exception
Tests whether different threads can set beanutils instances correctly


testContextClassLoaderUnset

public void testContextClassLoaderUnset()
                                 throws java.lang.Exception
Tests whether the unset method works


isPre14JVM

private boolean isPre14JVM()