You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2014/11/13 16:39:54 UTC

svn commit: r1639373 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java

Author: jacopoc
Date: Thu Nov 13 15:39:54 2014
New Revision: 1639373

URL: http://svn.apache.org/r1639373
Log:
Improved unit test that was failing when executed in certain platforms.

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=1639373&r1=1639372&r2=1639373&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 Thu Nov 13 15:39:54 2014
@@ -407,7 +407,7 @@ public class EntityTestSuite extends Ent
      * Tests findByCondition and tests searching on a view-entity
      */
     public void testCountViews() throws Exception {
-        delegator.removeByCondition("Testing", EntityCondition.makeCondition("testingId", EntityOperator.LIKE, "TEST-COUNT-VIEW-%"));
+        delegator.removeByCondition("Testing", EntityCondition.makeCondition("testingTypeId", EntityOperator.EQUALS, "TEST-COUNT-VIEW"));
         flushAndRecreateTree("count-views");
         createNodeMembers("TEST-COUNT-VIEW", "Testing Type #Count", "count-views");
 



Re: svn commit: r1639373 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.jav a

Posted by Jacques Le Roux <ja...@les7arts.com>.
Thanks Jacopo,

It was random finally :-O

Jacques

Le 13/11/2014 16:39, jacopoc@apache.org a écrit :
> Author: jacopoc
> Date: Thu Nov 13 15:39:54 2014
> New Revision: 1639373
>
> URL: http://svn.apache.org/r1639373
> Log:
> Improved unit test that was failing when executed in certain platforms.
>
> 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=1639373&r1=1639372&r2=1639373&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 Thu Nov 13 15:39:54 2014
> @@ -407,7 +407,7 @@ public class EntityTestSuite extends Ent
>        * Tests findByCondition and tests searching on a view-entity
>        */
>       public void testCountViews() throws Exception {
> -        delegator.removeByCondition("Testing", EntityCondition.makeCondition("testingId", EntityOperator.LIKE, "TEST-COUNT-VIEW-%"));
> +        delegator.removeByCondition("Testing", EntityCondition.makeCondition("testingTypeId", EntityOperator.EQUALS, "TEST-COUNT-VIEW"));
>           flushAndRecreateTree("count-views");
>           createNodeMembers("TEST-COUNT-VIEW", "Testing Type #Count", "count-views");
>   
>
>
>