|
|||||||||
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.broker.MultithreadedReadTest
Tests multithreaded read of objects using proxy for nested 1:1 references Account --> Buyer --> Address --> AddressType
Nested Class Summary | |
static interface |
MultithreadedReadTest.Account
|
static class |
MultithreadedReadTest.AccountImpl
|
static interface |
MultithreadedReadTest.Address
|
static class |
MultithreadedReadTest.AddressImpl
|
static interface |
MultithreadedReadTest.AddressType
|
static class |
MultithreadedReadTest.AddressTypeImpl
|
static interface |
MultithreadedReadTest.Base
|
static class |
MultithreadedReadTest.BaseImpl
|
static interface |
MultithreadedReadTest.Buyer
|
static class |
MultithreadedReadTest.BuyerImpl
|
(package private) class |
MultithreadedReadTest.TestHandleLazyRead
|
(package private) class |
MultithreadedReadTest.TestHandleMaterialize
|
(package private) class |
MultithreadedReadTest.TestHandleRead
|
Nested classes inherited from class org.apache.ojb.broker.JUnitExtensions.MultiThreadedTestCase |
JUnitExtensions.MultiThreadedTestCase.TestCaseRunnable |
Field Summary | |
(package private) int |
concurrentThreads
|
(package private) int |
loops
|
(package private) int |
numberOfObjects
|
Constructor Summary | |
MultithreadedReadTest(java.lang.String s)
|
Method Summary | |
static void |
main(java.lang.String[] args)
|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testClosedPB()
|
void |
testMultithreadedLazyRead()
Different threads try to materialize the same bunch of objects |
void |
testMultithreadedRead()
Different threads try to materialize the same bunch of objects. |
void |
testObjectMaterializationByDifferentThread()
Read objects using lazy materialization for references from DB. |
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 |
Field Detail |
int loops
int concurrentThreads
int numberOfObjects
Constructor Detail |
public MultithreadedReadTest(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 testClosedPB() throws java.lang.Throwable
java.lang.Throwable
public void testObjectMaterializationByDifferentThread() throws java.lang.Exception
java.lang.Exception
public void testMultithreadedRead() throws java.lang.Exception
java.lang.Exception
public void testMultithreadedLazyRead() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |