db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/odmg ODMGRollbackTest.java
Date Thu, 24 Jun 2004 13:49:03 GMT
arminw      2004/06/24 06:49:03

  Modified:    src/test/org/apache/ojb/odmg ODMGRollbackTest.java
  Log:
  add new test
  
  Revision  Changes    Path
  1.24      +7 -8      db-ojb/src/test/org/apache/ojb/odmg/ODMGRollbackTest.java
  
  Index: ODMGRollbackTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/odmg/ODMGRollbackTest.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- ODMGRollbackTest.java	22 Jun 2004 18:16:22 -0000	1.23
  +++ ODMGRollbackTest.java	24 Jun 2004 13:49:03 -0000	1.24
  @@ -56,6 +56,12 @@
           }
       }
   
  +    public void testDeleteAll() throws Exception
  +    {
  +        deleteAll(odmg, ODMGZoo.class);
  +        deleteAll(odmg, Project.class);
  +    }
  +
       public void testTransactionFlush() throws Exception
       {
           TransactionExt tx = (TransactionExt) odmg.newTransaction();
  @@ -570,14 +576,7 @@
               for (int i = 0; i < list.size(); i++)
               {
                   Object obj = list.get(i);
  -                try
  -                {
  -                    database.deletePersistent(obj);
  -                }
  -                catch (Exception e)
  -                {
  -                    throw e;
  -                }
  +                database.deletePersistent(obj);
               }
           }
           finally
  
  
  

---------------------------------------------------------------------
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