Author: surajk
Date: Sat May 25 16:35:56 2019
New Revision: 1860004

URL: http://svn.apache.org/viewvc?rev=1860004&view=rev
Log:
Improved: Unit test case for service - CheckCreateProductRequirementForFacility.
(OFBIZ-8937)
Thanks Avnindra Sharma for reporting the issue and Anushi Gupta for providing 
the patch.

Modified:
    
ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/test/OrderTests.groovy

Modified: 
ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/test/OrderTests.groovy
URL: 
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/test/OrderTests.groovy?rev=1860004&r1=1860003&r2=1860004&view=diff
==============================================================================
--- 
ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/test/OrderTests.groovy
 (original)
+++ 
ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/test/OrderTests.groovy
 Sat May 25 16:35:56 2019
@@ -60,4 +60,14 @@ class OrderTests extends GroovyScriptTes
         Map serviceResult = dispatcher.runSync('checkPaymentAmountForRefund', 
serviceCtx)
         assert ServiceUtil.isSuccess(serviceResult)
     }
+    //TODO: This can be moved to a different file
+    void testCheckCreateProductRequirementForFacility() {
+        Map serviceCtx = [
+                facilityId: 'WebStoreWarehouse',
+                orderItemSeqId: '00001',
+                userLogin: 
EntityQuery.use(delegator).from('UserLogin').where('userLoginId', 
'system').cache().queryOne()
+        ]
+        Map serviceResult = 
dispatcher.runSync('checkCreateProductRequirementForFacility', serviceCtx)
+        assert ServiceUtil.isSuccess(serviceResult)
+    }
 }
\ No newline at end of file


Reply via email to