org.picocontainer.defaults
Class SynchronizedComponentAdapterTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.picocontainer.defaults.SynchronizedComponentAdapterTestCase
All Implemented Interfaces:
junit.framework.Test

public class SynchronizedComponentAdapterTestCase
extends junit.framework.TestCase

Version:
$Revision: 1572 $
Author:
Thomas Heller, Aslak Hellesøy, Jörg Schaible

Nested Class Summary
 class SynchronizedComponentAdapterTestCase.Blocker
           
static class SynchronizedComponentAdapterTestCase.SlowCtor
           
 
Constructor Summary
SynchronizedComponentAdapterTestCase()
           
 
Method Summary
 void testRaceConditionIsHandledBySynchronizedComponentAdapter()
           
 void testRaceConditionIsNotHandledWithoutSynchronizedComponentAdapter()
           
 void testSingletonCreationWithSynchronizedAdapterAndDoubleLocking()
           
 void testSingletonCreationWithSynchronizedAdapterOutside()
           
 void testSingletonCreationWithSynchronizedAdapterOutsideUsingFactory()
           
 void THIS_NATURALLY_FAILS_testSingletonCreationRace()
           
 void THIS_NATURALLY_FAILS_testSingletonCreationWithSynchronizedAdapter()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SynchronizedComponentAdapterTestCase

public SynchronizedComponentAdapterTestCase()
Method Detail

testRaceConditionIsHandledBySynchronizedComponentAdapter

public void testRaceConditionIsHandledBySynchronizedComponentAdapter()
                                                              throws InterruptedException
Throws:
InterruptedException

testRaceConditionIsNotHandledWithoutSynchronizedComponentAdapter

public void testRaceConditionIsNotHandledWithoutSynchronizedComponentAdapter()
                                                                      throws InterruptedException
Throws:
InterruptedException

THIS_NATURALLY_FAILS_testSingletonCreationRace

public void THIS_NATURALLY_FAILS_testSingletonCreationRace()
                                                    throws InterruptedException
Throws:
InterruptedException

THIS_NATURALLY_FAILS_testSingletonCreationWithSynchronizedAdapter

public void THIS_NATURALLY_FAILS_testSingletonCreationWithSynchronizedAdapter()
                                                                       throws InterruptedException
Throws:
InterruptedException

testSingletonCreationWithSynchronizedAdapterAndDoubleLocking

public void testSingletonCreationWithSynchronizedAdapterAndDoubleLocking()
                                                                  throws InterruptedException
Throws:
InterruptedException

testSingletonCreationWithSynchronizedAdapterOutside

public void testSingletonCreationWithSynchronizedAdapterOutside()
                                                         throws InterruptedException
Throws:
InterruptedException

testSingletonCreationWithSynchronizedAdapterOutsideUsingFactory

public void testSingletonCreationWithSynchronizedAdapterOutsideUsingFactory()
                                                                     throws InterruptedException
Throws:
InterruptedException


Copyright © 2003-2007 Codehaus. All Rights Reserved.