You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by su...@apache.org on 2019/10/06 11:23:38 UTC

svn commit: r1868049 - /ofbiz/ofbiz-framework/trunk/applications/order/src/main/groovy/org/apache/ofbiz/order/OrderTests.groovy

Author: surajk
Date: Sun Oct  6 11:23:38 2019
New Revision: 1868049

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

Modified:
    ofbiz/ofbiz-framework/trunk/applications/order/src/main/groovy/org/apache/ofbiz/order/OrderTests.groovy

Modified: ofbiz/ofbiz-framework/trunk/applications/order/src/main/groovy/org/apache/ofbiz/order/OrderTests.groovy
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/src/main/groovy/org/apache/ofbiz/order/OrderTests.groovy?rev=1868049&r1=1868048&r2=1868049&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/order/src/main/groovy/org/apache/ofbiz/order/OrderTests.groovy (original)
+++ ofbiz/ofbiz-framework/trunk/applications/order/src/main/groovy/org/apache/ofbiz/order/OrderTests.groovy Sun Oct  6 11:23:38 2019
@@ -256,4 +256,13 @@ class OrderTests extends OFBizTestCase {
         assert ServiceUtil.isSuccess(serviceResult)
         assert serviceResult.emailType.equals("PRDS_ODR_COMPLETE")
     }
+    void testCheckCreateOrderRequirement() {
+        Map serviceCtx = [
+            orderId: 'TEST_DEMO10090',
+            orderItemSeqId: '00001',
+            userLogin: EntityQuery.use(delegator).from('UserLogin').where('userLoginId', 'system').cache().queryOne()
+        ]
+        Map serviceResult = dispatcher.runSync('checkCreateOrderRequirement', serviceCtx)
+        assert ServiceUtil.isSuccess(serviceResult)
+    }
 }