Author: lektran
Date: Mon Jan 18 18:53:50 2010
New Revision: 900511

URL: http://svn.apache.org/viewvc?rev=900511&view=rev
Log:
Fixed bug reported by Wickersheimer Jeremy, OFBIZ-3302. Because the 
testEntityListIterator test depends on the correct ordering of the find 
results, explicity specify the correct order rather than depending on the 
database to get it right.

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java

Modified: 
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java?rev=900511&r1=900510&r2=900511&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java 
(original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java 
Mon Jan 18 18:53:50 2010
@@ -403,7 +403,7 @@
         boolean beganTransaction = false;
         try {
             beganTransaction = TransactionUtil.begin();
-            EntityListIterator iterator = delegator.find("Testing", 
EntityCondition.makeCondition("testingId", EntityOperator.LIKE, "T2-%"), null, 
null, null, null);
+            EntityListIterator iterator = delegator.find("Testing", 
EntityCondition.makeCondition("testingId", EntityOperator.LIKE, "T2-%"), null, 
null, UtilMisc.toList("testingId"), null);
             assertTrue("Test if EntityListIterator was created: ", iterator != 
null);
 
             int i = 0;


Reply via email to