org.apache.ojb.odmg
Class LockingTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.ojb.odmg.LockingTest
All Implemented Interfaces:
junit.framework.Test

public class LockingTest
extends junit.framework.TestCase

Test optimistic and pessimistic locking mechanisms


Constructor Summary
LockingTest(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 testLockBasics()
           
 void testLockLoop()
           
 void testOptimisticLockBasics()
          test proper treatment of Optimistic Locking in ODMG transactions
 
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
 

Constructor Detail

LockingTest

public LockingTest(java.lang.String name)
Insert the method's description here. Creation date: (24.12.2000 00:33:40)

Method Detail

main

public static void main(java.lang.String[] args)

setUp

public void setUp()
           throws java.lang.Exception
Insert the method's description here. Creation date: (06.12.2000 21:58:53)

Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Insert the method's description here. Creation date: (06.12.2000 21:59:14)

Throws:
java.lang.Exception

testLockBasics

public void testLockBasics()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testOptimisticLockBasics

public void testOptimisticLockBasics()
                              throws java.lang.Exception
test proper treatment of Optimistic Locking in ODMG transactions

Throws:
java.lang.Exception

testLockLoop

public void testLockLoop()
                  throws java.lang.Exception
Throws:
java.lang.Exception


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14