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-unsubscr...@db.apache.org For additional commands, e-mail: torque-dev-h...@db.apache.org