public class SynchronizedTestCase extends Object
Modifier and Type | Class and Description |
---|---|
class |
SynchronizedTestCase.Blocker |
static class |
SynchronizedTestCase.SlowCtor |
Constructor and Description |
---|
SynchronizedTestCase() |
Modifier and Type | Method and Description |
---|---|
protected BehaviorFactory |
makeBehaviorFactory() |
protected ComponentAdapter |
makeComponentAdapter(ComponentAdapter componentAdapter) |
void |
testRaceConditionIsHandledBySynchronizedComponentAdapter() |
void |
testRaceConditionIsNotHandledWithoutSynchronizedComponentAdapter() |
void |
testSingletonCreationWithSynchronizedAdapterAndDoubleLocking() |
void |
testSingletonCreationWithSynchronizedAdapterOutside() |
void |
testSingletonCreationWithSynchronizedAdapterOutsideUsingFactory() |
void |
THIS_NATURALLY_FAILS_testSingletonCreationRace() |
void |
THIS_NATURALLY_FAILS_testSingletonCreationWithSynchronizedAdapter() |
public SynchronizedTestCase()
public void testRaceConditionIsHandledBySynchronizedComponentAdapter() throws InterruptedException
InterruptedException
protected ComponentAdapter makeComponentAdapter(ComponentAdapter componentAdapter)
public void testRaceConditionIsNotHandledWithoutSynchronizedComponentAdapter() throws InterruptedException
InterruptedException
public void THIS_NATURALLY_FAILS_testSingletonCreationRace() throws InterruptedException
InterruptedException
public void THIS_NATURALLY_FAILS_testSingletonCreationWithSynchronizedAdapter() throws InterruptedException
InterruptedException
public void testSingletonCreationWithSynchronizedAdapterAndDoubleLocking() throws InterruptedException
InterruptedException
public void testSingletonCreationWithSynchronizedAdapterOutside() throws InterruptedException
InterruptedException
public void testSingletonCreationWithSynchronizedAdapterOutsideUsingFactory() throws InterruptedException
InterruptedException
protected BehaviorFactory makeBehaviorFactory()
Copyright © 2003–2015 Codehaus. All rights reserved.