|
|||||||||
| 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.OptimisticLockingTest
This TestClass tests OJB facilities for optimistic locking.
| Field Summary | |
(package private) PersistenceBroker |
broker
|
| Constructor Summary | |
OptimisticLockingTest(java.lang.String name)
Insert the method's description here. |
|
| Method Summary | |
static void |
main(java.lang.String[] args)
|
void |
setUp()
Insert the method's description here. |
void |
tearDown()
Insert the method's description here. |
void |
testLockHandling()
demonstrates how OptimisticLockExceptions can be used to handle resynchronization of conflicting instances. |
void |
testTimestampLock()
Test optimistic Lock by timestamp. |
void |
testVersionLock()
Test optimistic Lock by version. |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, 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 |
PersistenceBroker broker
| Constructor Detail |
public OptimisticLockingTest(java.lang.String name)
| Method Detail |
public static void main(java.lang.String[] args)
public void setUp()
throws PBFactoryException
PBFactoryExceptionpublic void tearDown()
public void testVersionLock()
throws java.lang.Exception
java.lang.Exception
public void testLockHandling()
throws java.lang.Exception
java.lang.Exception
public void testTimestampLock()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||