db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1213048 - /db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/peer/FillerTest.java
Date Sun, 11 Dec 2011 19:41:33 GMT
Author: tfischer
Date: Sun Dec 11 19:41:33 2011
New Revision: 1213048

URL: http://svn.apache.org/viewvc?rev=1213048&view=rev
Log:
Added debug code to find test failure reason on jenkins (test runs fine on my box)

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=1213048&r1=1213047&r2=1213048&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 Dec 11 19:41:33 2011
@@ -605,6 +605,17 @@ public class FillerTest extends BaseRunt
         List<NullableOIntegerFk> fkObjectList
             = NullableOIntegerFkPeer.doSelect(criteria);
         assertEquals(MANY, fkObjectList.size());
+
+        int count = 0;
+        for (NullableOIntegerFk fkObject : fkObjectList)
+        {
+            if (fkObject.getFk() != null && fkObject.getFk() == 0)
+            {
+                fail("fk Object with id " + fkObject.getId()
+                        + " on position " + count + " has foreign key 0");
+            }
+            ++count;
+        }
         // TODO assert that fkObjectList have not already loaded their pk object
 
         List<OIntegerPk> oIntegerPkList



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