You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2003/03/12 13:42:18 UTC
cvs commit: db-ojb/src/test/org/apache/ojb/odmg CollectionsTest.java
arminw 2003/03/12 04:42:18
Modified: src/test/org/apache/ojb/odmg CollectionsTest.java
Log:
fix test case
Revision Changes Path
1.2 +8 -3 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.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- CollectionsTest.java 12 Mar 2003 09:29:01 -0000 1.1
+++ CollectionsTest.java 12 Mar 2003 12:42:18 -0000 1.2
@@ -92,6 +92,13 @@
assertEquals("Wrong number of CollectiblesA", 3, colsA.size());
// delete one of the CollectibleA
+ // we have to set the new reduced list in the
+ // gatherer object
+ List newCols = new ArrayList();
+ newCols.add(colsA.get(1));
+ newCols.add(colsA.get(2));
+ fetchedGat.setCollectiblesA(newCols);
+ tx.lock(fetchedGat, Transaction.WRITE);
db.deletePersistent(colsA.get(0));
tx.commit();
@@ -108,8 +115,6 @@
// check if the gatherer now contains a CollectibleA list
// reduced by the deleted
tx.begin();
-// when clear cache test will be passed
-// ((HasBroker)tx).getBroker().clearCache();
query = odmg.newOQLQuery();
query.create(queryStr);
query.bind(gatId);