db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1364211 - /db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/FillerTest.java
Date Sun, 22 Jul 2012 03:19:40 GMT
Author: tfischer
Date: Sun Jul 22 03:19:40 2012
New Revision: 1364211

URL: http://svn.apache.org/viewvc?rev=1364211&view=rev
Log:
check initialisation before and after filling

Modified:
    db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/FillerTest.java

Modified: db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/FillerTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/FillerTest.java?rev=1364211&r1=1364210&r2=1364211&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/FillerTest.java
(original)
+++ db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/FillerTest.java
Sun Jul 22 03:19:40 2012
@@ -654,13 +654,20 @@ public class FillerTest extends BaseData
         assertEquals(
                 testData.getPIntegerPkList().get(0).getId(),
                 pkList.get(0).getId());
-        // TODO check that pkList entries have not yet
-        //      loaded its referencing nullablePIntegerFk objects
+        for (PIntegerPk pIntegerPk : pkList)
+        {
+            assertFalse(pIntegerPk.isRequiredPIntegerFksInitialized());
+        }
 
         List<RequiredPIntegerFk> referencingFkList
                 = PIntegerPkPeer.fillRequiredPIntegerFks(
                         pkList);
 
+        // check all referencing lists are initialized
+        for (PIntegerPk pIntegerPk : pkList)
+        {
+            assertTrue(pIntegerPk.isRequiredPIntegerFksInitialized());
+        }
         // returned list must contain requiredPIntegerFk2,
         // requiredPIntegerFk3a, requiredPIntegerFk3b
         // where the last two can be exchanged



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message