You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2010/04/20 13:10:45 UTC

svn commit: r935870 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java

Author: lektran
Date: Tue Apr 20 11:10:45 2010
New Revision: 935870

URL: http://svn.apache.org/viewvc?rev=935870&view=rev
Log:
At some point the behavior of initEntityEcaHandler() was changed so that a new handler wasn't inititated if the delegator already had one.  The broke the test delegator because it requires a new handler be created for it rather than inherit the one provided by the delegator that it cloned.  Worked around by setting the handler to null on the while making the test delegator before calling initEntityEcaHandler().

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java?rev=935870&r1=935869&r2=935870&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java Tue Apr 20 11:10:45 2010
@@ -3255,6 +3255,7 @@ public class GenericDelegator implements
      */
     public GenericDelegator makeTestDelegator(String delegatorName) {
         GenericDelegator testDelegator = this.cloneDelegator(delegatorName);
+        testDelegator.entityEcaHandler = null;
         testDelegator.initEntityEcaHandler();
         testDelegator.setTestMode(true);
         return testDelegator;