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
InterruptedExceptionprotected ComponentAdapter makeComponentAdapter(ComponentAdapter componentAdapter)
public void testRaceConditionIsNotHandledWithoutSynchronizedComponentAdapter() throws InterruptedException
InterruptedExceptionpublic void THIS_NATURALLY_FAILS_testSingletonCreationRace() throws InterruptedException
InterruptedExceptionpublic void THIS_NATURALLY_FAILS_testSingletonCreationWithSynchronizedAdapter() throws InterruptedException
InterruptedExceptionpublic void testSingletonCreationWithSynchronizedAdapterAndDoubleLocking() throws InterruptedException
InterruptedExceptionpublic void testSingletonCreationWithSynchronizedAdapterOutside() throws InterruptedException
InterruptedExceptionpublic void testSingletonCreationWithSynchronizedAdapterOutsideUsingFactory() throws InterruptedException
InterruptedExceptionprotected BehaviorFactory makeBehaviorFactory()
Copyright © 2003–2016 Codehaus. All rights reserved.