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 CollectionsTest.java
Date Tue, 24 Feb 2004 13:19:21 GMT
arminw      2004/02/24 05:19:21

  Modified:    src/test/org/apache/ojb/odmg CollectionsTest.java
  Log:
  fix tests
  
  Revision  Changes    Path
  1.11      +6 -1      db-ojb/src/test/org/apache/ojb/odmg/CollectionsTest.java
  
  Index: CollectionsTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/odmg/CollectionsTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- CollectionsTest.java	18 Feb 2004 16:43:57 -0000	1.10
  +++ CollectionsTest.java	24 Feb 2004 13:19:21 -0000	1.11
  @@ -470,6 +470,7 @@
           assertEquals(prefix + "NO_1", collC_1.getName());
           assertEquals(prefix + "NO_2", collC_2.getName());
   
  +        //*****************************************************
           List list1 = fetchedGat.getCollectiblesC();
           List list2 = fetchedGat2.getCollectiblesC();
           // now exchange the lists
  @@ -479,6 +480,7 @@
           fetchedGat.setCollectiblesC(list2);
           fetchedGat2.setCollectiblesC(list1);
           tx.commit();
  +        //*****************************************************
   
           // now we do same procedure to query and check
           tx.begin();
  @@ -724,6 +726,8 @@
           CollectibleB newB = new CollectibleB(prefix);
           newB.setGatherer(fetchedGat);
           fetchedGat.getCollectiblesB().add(newB);
  +        // lock the new object
  +        tx.lock(newB, Transaction.WRITE);
           //*************************************
   
           tx.commit();
  @@ -830,6 +834,7 @@
           CollectibleB newB = new CollectibleB(name);
           newB.setGatherer(fetchedGatherer);
           fetchedGatherer.getCollectiblesB().add(newB);
  +        tx.lock(newB, Transaction.WRITE);
           //*************************************
           assertEquals(2, fetchedGatherer.getCollectiblesB().size());
           tx.commit();
  
  
  

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