db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1553757 - /db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/dataobject/GetRelatedObjectsJoinTest.java
Date Fri, 27 Dec 2013 22:52:47 GMT
Author: tfischer
Date: Fri Dec 27 22:52:47 2013
New Revision: 1553757

URL: http://svn.apache.org/r1553757
Log:
fix unstable test (fails if randomly chosen first object does not have a PIntegerPk reference)

Modified:
    db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/dataobject/GetRelatedObjectsJoinTest.java

Modified: db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/dataobject/GetRelatedObjectsJoinTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/dataobject/GetRelatedObjectsJoinTest.java?rev=1553757&r1=1553756&r2=1553757&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/dataobject/GetRelatedObjectsJoinTest.java
(original)
+++ db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/generated/dataobject/GetRelatedObjectsJoinTest.java
Fri Dec 27 22:52:47 2013
@@ -72,7 +72,10 @@ public class GetRelatedObjectsJoinTest e
             Torque.getOrCreateDatabase(Torque.getDefaultDB()).setAdapter(null);
             try
             {
-                multiRefs.get(0).getPIntegerPk();
+                for (MultiRef multiRef : multiRefs)
+                {
+                    multiRef.getPIntegerPk();
+                }
                 fail("Exception excpected");
             }
             catch (Exception e)



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