db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1584930 - /db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/FillerTest.java
Date Fri, 04 Apr 2014 22:23:54 GMT
Author: tfischer
Date: Fri Apr  4 22:23:53 2014
New Revision: 1584930

URL: http://svn.apache.org/r1584930
Log:
TORQUE-314 filler methods do not set isNew and isModified flag correctly

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=1584930&r1=1584929&r2=1584930&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
Fri Apr  4 22:23:53 2014
@@ -130,6 +130,16 @@ public class FillerTest extends BaseData
         assertSame(
                 referencedPkList.get(2),
                 fkList.get(2).getPIntegerPk());
+
+        // check flags
+        for (PIntegerPk pIntegerPk : referencedPkList)
+        {
+            assertFalse(pIntegerPk.isNew());
+            assertFalse(pIntegerPk.isModified());
+            assertFalse(pIntegerPk.isLoading());
+            assertFalse(pIntegerPk.isDeleted());
+            assertFalse(pIntegerPk.isSaving());
+        }
     }
 
     /**
@@ -785,6 +795,16 @@ public class FillerTest extends BaseData
         assertSame(
                 referencingFkList.get(2),
                 pkList.get(2).getRequiredPIntegerFks().get(1));
+
+        // check flags
+        for (RequiredPIntegerFk requiredPIntegerFk : referencingFkList)
+        {
+            assertFalse(requiredPIntegerFk.isNew());
+            assertFalse(requiredPIntegerFk.isModified());
+            assertFalse(requiredPIntegerFk.isLoading());
+            assertFalse(requiredPIntegerFk.isDeleted());
+            assertFalse(requiredPIntegerFk.isSaving());
+        }
     }
 
     /**



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