|
|||||||||
| 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.apache.ojb.broker.JUnitExtensions.MultiThreadedTestCase
org.apache.ojb.odmg.LockingMultithreadedTest
Test odmg-locking implementation with multiple threads. Different threads try to update the same instance / or a copy of the same object.
| Nested Class Summary | |
(package private) class |
LockingMultithreadedTest.LockHandle
|
static class |
LockingMultithreadedTest.LockObject
|
static class |
LockingMultithreadedTest.LockObjectRef
|
| Nested classes inherited from class org.apache.ojb.broker.JUnitExtensions.MultiThreadedTestCase |
JUnitExtensions.MultiThreadedTestCase.TestCaseRunnable |
| Constructor Summary | |
LockingMultithreadedTest(java.lang.String s)
|
|
| Method Summary | |
static void |
main(java.lang.String[] args)
|
static int |
newThreadKey()
|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testLockingOfObject()
|
| Methods inherited from class org.apache.ojb.broker.JUnitExtensions.MultiThreadedTestCase |
interruptThreads, run, runTestCaseRunnables |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, 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 |
| Constructor Detail |
public LockingMultithreadedTest(java.lang.String s)
| Method Detail |
public static void main(java.lang.String[] args)
protected void setUp()
throws java.lang.Exception
java.lang.Exception
protected void tearDown()
throws java.lang.Exception
java.lang.Exception
public void testLockingOfObject()
throws java.lang.Exception
java.lang.Exceptionpublic static int newThreadKey()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||