|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.picocontainer.defaults.SynchronizedComponentAdapterTestCase
public class SynchronizedComponentAdapterTestCase
Nested Class Summary | |
---|---|
class |
SynchronizedComponentAdapterTestCase.Blocker
|
(package private) class |
SynchronizedComponentAdapterTestCase.Runner
|
static class |
SynchronizedComponentAdapterTestCase.SlowCtor
|
Field Summary | |
---|---|
private int |
blockerCounter
|
private SynchronizedComponentAdapterTestCase.Runner[] |
runner
|
Constructor Summary | |
---|---|
SynchronizedComponentAdapterTestCase()
|
Method Summary | |
---|---|
private void |
initTest(org.picocontainer.ComponentAdapter componentAdapter)
|
private void |
runConcurrencyTest(org.picocontainer.defaults.DefaultPicoContainer pico)
|
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 |
Field Detail |
---|
private SynchronizedComponentAdapterTestCase.Runner[] runner
private int blockerCounter
Constructor Detail |
---|
public SynchronizedComponentAdapterTestCase()
Method Detail |
---|
private void initTest(org.picocontainer.ComponentAdapter componentAdapter) throws java.lang.InterruptedException
java.lang.InterruptedException
public void testRaceConditionIsHandledBySynchronizedComponentAdapter() throws java.lang.InterruptedException
java.lang.InterruptedException
public void testRaceConditionIsNotHandledWithoutSynchronizedComponentAdapter() throws java.lang.InterruptedException
java.lang.InterruptedException
public void THIS_NATURALLY_FAILS_testSingletonCreationRace() throws java.lang.InterruptedException
java.lang.InterruptedException
public void THIS_NATURALLY_FAILS_testSingletonCreationWithSynchronizedAdapter() throws java.lang.InterruptedException
java.lang.InterruptedException
public void testSingletonCreationWithSynchronizedAdapterAndDoubleLocking() throws java.lang.InterruptedException
java.lang.InterruptedException
public void testSingletonCreationWithSynchronizedAdapterOutside() throws java.lang.InterruptedException
java.lang.InterruptedException
public void testSingletonCreationWithSynchronizedAdapterOutsideUsingFactory() throws java.lang.InterruptedException
java.lang.InterruptedException
private void runConcurrencyTest(org.picocontainer.defaults.DefaultPicoContainer pico) throws java.lang.InterruptedException
java.lang.InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |