db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r452842 - /db/ojb/trunk/src/test/org/apache/ojb/broker/CollectionTest.java
Date Wed, 04 Oct 2006 11:27:59 GMT
Author: arminw
Date: Wed Oct  4 04:27:59 2006
New Revision: 452842

URL: http://svn.apache.org/viewvc?view=rev&rev=452842
Log:
improve test

Modified:
    db/ojb/trunk/src/test/org/apache/ojb/broker/CollectionTest.java

Modified: db/ojb/trunk/src/test/org/apache/ojb/broker/CollectionTest.java
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/test/org/apache/ojb/broker/CollectionTest.java?view=diff&rev=452842&r1=452841&r2=452842
==============================================================================
--- db/ojb/trunk/src/test/org/apache/ojb/broker/CollectionTest.java (original)
+++ db/ojb/trunk/src/test/org/apache/ojb/broker/CollectionTest.java Wed Oct  4 04:27:59 2006
@@ -14,7 +14,7 @@
 import org.apache.ojb.broker.query.Query;
 import org.apache.ojb.broker.query.QueryFactory;
 import org.apache.ojb.broker.util.ObjectModification;
-import org.apache.ojb.broker.util.collections.RemovalAwareCollection;
+import org.apache.ojb.broker.util.collections.RemovalAwareList;
 import org.apache.ojb.junit.PBTestCase;
 
 /**
@@ -64,7 +64,6 @@
  *
  * TODO: Need some refactoring and more structured tests of different auto_xyz/proxy settings
  *
- * @author <a href="mailto:armin@codeAuLait.de">Armin Waibel</a>
  * @version $Id$
  */
 public class CollectionTest extends PBTestCase
@@ -946,7 +945,7 @@
         loadedCopy = (Gatherer) broker.getObjectByIdentity(gathererId);
         assertNotNull(loadedCopy);
         assertNotNull(loadedCopy.getCollectiblesBase());
-        assertTrue(loadedCopy.getCollectiblesBase() instanceof RemovalAwareCollection);
+        assertTrue(loadedCopy.getCollectiblesBase() instanceof RemovalAwareList);
         assertEquals(3, loadedCopy.getCollectiblesBase().size());
         
         //
@@ -961,7 +960,7 @@
         loadedCopy = (Gatherer) broker.getObjectByIdentity(gathererId);
         assertNotNull(loadedCopy);
         assertNotNull(loadedCopy.getCollectiblesBase());
-        assertTrue(loadedCopy.getCollectiblesBase() instanceof RemovalAwareCollection);
+        assertTrue(loadedCopy.getCollectiblesBase() instanceof RemovalAwareList);
         assertEquals(2, loadedCopy.getCollectiblesBase().size());
 
         //
@@ -976,7 +975,7 @@
         loadedCopy = (Gatherer) broker.getObjectByIdentity(gathererId);
         assertNotNull(loadedCopy);
         assertNotNull(loadedCopy.getCollectiblesBase());
-        assertTrue(loadedCopy.getCollectiblesBase() instanceof RemovalAwareCollection);
+        assertTrue(loadedCopy.getCollectiblesBase() instanceof RemovalAwareList);
         assertEquals(0, loadedCopy.getCollectiblesBase().size());
     }
 
@@ -1005,7 +1004,7 @@
         loadedCopy = (Gatherer) broker.getObjectByIdentity(gathererId);
         assertNotNull(loadedCopy);
         assertNotNull(loadedCopy.getCollectiblesBase());
-        assertTrue(loadedCopy.getCollectiblesBase() instanceof RemovalAwareCollection);
+        assertTrue(loadedCopy.getCollectiblesBase() instanceof RemovalAwareList);
         assertEquals(2, loadedCopy.getCollectiblesBase().size());
         
         // add and remove non persistent obj
@@ -1049,7 +1048,7 @@
         loadedCopy = (ProductGroup) broker.getObjectByIdentity(pgId);
         assertNotNull(loadedCopy);
         assertNotNull(loadedCopy.getAllArticlesInGroup());
-        assertTrue(loadedCopy.getAllArticlesInGroup() instanceof RemovalAwareCollection);
+        assertTrue(loadedCopy.getAllArticlesInGroup() instanceof RemovalAwareList);
         assertEquals(3, loadedCopy.getAllArticlesInGroup().size());
         
         //
@@ -1064,7 +1063,7 @@
         loadedCopy = (ProductGroup) broker.getObjectByIdentity(pgId);
         assertNotNull(loadedCopy);
         assertNotNull(loadedCopy.getAllArticlesInGroup());
-        assertTrue(loadedCopy.getAllArticlesInGroup() instanceof RemovalAwareCollection);
+        assertTrue(loadedCopy.getAllArticlesInGroup() instanceof RemovalAwareList);
         assertEquals(2, loadedCopy.getAllArticlesInGroup().size());
 
         //
@@ -1079,7 +1078,7 @@
         loadedCopy = (ProductGroup) broker.getObjectByIdentity(pgId);
         assertNotNull(loadedCopy);
         assertNotNull(loadedCopy.getAllArticlesInGroup());
-        assertTrue(loadedCopy.getAllArticlesInGroup() instanceof RemovalAwareCollection);
+        assertTrue(loadedCopy.getAllArticlesInGroup() instanceof RemovalAwareList);
         assertEquals(0, loadedCopy.getAllArticlesInGroup().size());
     }
     



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