db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r504398 - /db/ojb/trunk/src/test/org/apache/ojb/broker/AnonymousFieldsTest.java
Date Wed, 07 Feb 2007 01:08:52 GMT
Author: arminw
Date: Tue Feb  6 17:08:51 2007
New Revision: 504398

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

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

Modified: db/ojb/trunk/src/test/org/apache/ojb/broker/AnonymousFieldsTest.java
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/test/org/apache/ojb/broker/AnonymousFieldsTest.java?view=diff&rev=504398&r1=504397&r2=504398
==============================================================================
--- db/ojb/trunk/src/test/org/apache/ojb/broker/AnonymousFieldsTest.java (original)
+++ db/ojb/trunk/src/test/org/apache/ojb/broker/AnonymousFieldsTest.java Tue Feb  6 17:08:51
2007
@@ -5,7 +5,6 @@
 import java.util.Collection;
 
 import org.apache.commons.lang.SerializationUtils;
-import org.apache.ojb.broker.ObjectRepository.F1;
 import org.apache.ojb.broker.metadata.ClassDescriptor;
 import org.apache.ojb.broker.metadata.ObjectReferenceDescriptor;
 import org.apache.ojb.broker.query.Criteria;
@@ -781,7 +780,7 @@
 
     public void testMultipleJoinedInheritanceAndExtents()
     {
-        ObjectRepository.F1 entry = new ObjectRepository.F1();
+        ObjectRepository.F entry = new ObjectRepository.F();
         entry.setSomeSuperValue(1);
         entry.setSomeValue(2);
         broker.beginTransaction();
@@ -790,7 +789,7 @@
 
         Integer id = entry.getId();
         broker.clearCache();
-        entry = (F1) findById(ObjectRepository.F1.class, id.intValue());
+        entry = (ObjectRepository.F) findById(ObjectRepository.F.class, id.intValue());
         assertEquals(id, entry.getId());
         assertEquals(1, entry.getSomeSuperValue());
         assertEquals(2, entry.getSomeValue());
@@ -798,7 +797,7 @@
 
     public void testMultipleJoinedInheritanceAndExtentsWithCache()
     {
-        ObjectRepository.F1 entry = new ObjectRepository.F1();
+        ObjectRepository.F entry = new ObjectRepository.F();
         entry.setSomeSuperValue(1);
         entry.setSomeValue(2);
         broker.beginTransaction();
@@ -806,7 +805,7 @@
         broker.commitTransaction();
 
         Integer id = entry.getId();
-        entry = (F1) findById(ObjectRepository.F1.class, id.intValue());
+        entry = (ObjectRepository.F) findById(ObjectRepository.F.class, id.intValue());
         assertEquals(id, entry.getId());
         assertEquals(1, entry.getSomeSuperValue());
         assertEquals(2, entry.getSomeValue());
@@ -814,7 +813,7 @@
 
     public void testMultipleJoinedInheritanceAndExtents_2()
     {
-        ObjectRepository.F1 entry = new ObjectRepository.F1();
+        ObjectRepository.F entry = new ObjectRepository.F();
         entry.setSomeSuperValue(1);
         entry.setSomeValue(2);
         broker.beginTransaction();
@@ -823,7 +822,7 @@
 
         Integer id = entry.getId();
         broker.clearCache();
-        entry = (F1) findById(ObjectRepository.E.class, id.intValue());
+        entry = (ObjectRepository.F) findById(ObjectRepository.E.class, id.intValue());
         assertEquals(id, entry.getId());
         assertEquals(1, entry.getSomeSuperValue());
         assertEquals(2, entry.getSomeValue());
@@ -831,7 +830,7 @@
 
     public void testMultipleJoinedInheritanceAndExtents_2_WithCache()
     {
-        ObjectRepository.F1 entry = new ObjectRepository.F1();
+        ObjectRepository.F entry = new ObjectRepository.F();
         entry.setSomeSuperValue(1);
         entry.setSomeValue(2);
         broker.beginTransaction();
@@ -839,7 +838,7 @@
         broker.commitTransaction();
 
         Integer id = entry.getId();
-        entry = (F1) findById(ObjectRepository.E.class, id.intValue());
+        entry = (ObjectRepository.F) findById(ObjectRepository.E.class, id.intValue());
         assertEquals(id, entry.getId());
         assertEquals(1, entry.getSomeSuperValue());
         assertEquals(2, entry.getSomeValue());



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