db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker OptimisticLockingTest.java
Date Thu, 22 Apr 2004 19:36:35 GMT
brj         2004/04/22 12:36:35

  Modified:    src/test/org/apache/ojb/broker OptimisticLockingTest.java
  Log:
  throw OptimisticLockException on delete
  adapted testcase
  
  Revision  Changes    Path
  1.9       +9 -2      db-ojb/src/test/org/apache/ojb/broker/OptimisticLockingTest.java
  
  Index: OptimisticLockingTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/OptimisticLockingTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- OptimisticLockingTest.java	13 Dec 2003 18:57:18 -0000	1.8
  +++ OptimisticLockingTest.java	22 Apr 2004 19:36:35 -0000	1.9
  @@ -190,8 +190,15 @@
           }
           catch (OptimisticLockException e)
           {
  -            fail("If an object which use optimistic locking was deleted two times, OJB"
+
  -                    " should not throw an optimistic locking exception: "+e.getMessage());
  +           // BRJ: exception thrown if object has been modified or deleted 
  +           // 
  +           // fail("If an object which use optimistic locking was deleted two times, OJB"
+
  +           //         " should not throw an optimistic locking exception: "+e.getMessage());
  +           System.out.println(e.getMessage()); 
  +           return;
           }
  +        
  +        fail("Should throw an Optimistic Lock exception");
  +
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message