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/02 07:33:07 UTC
svn commit: r1867873 -
/ofbiz/ofbiz-framework/trunk/applications/order/src/main/groovy/org/apache/ofbiz/order/OrderTests.groovy
Author: surajk
Date: Wed Oct 2 07:33:07 2019
New Revision: 1867873
URL: http://svn.apache.org/viewvc?rev=1867873&view=rev
Log:
Improved: Unit test case for service - CheckCreateStockRequirementAtp.
(OFBIZ-8938)
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=1867873&r1=1867872&r2=1867873&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 Wed Oct 2 07:33:07 2019
@@ -192,4 +192,14 @@ class OrderTests extends OFBizTestCase {
Map serviceResult = dispatcher.runSync('processRefundOnlyReturn', serviceCtx)
assert ServiceUtil.isSuccess(serviceResult)
}
+ void testCheckCreateStockRequirementAtp() {
+ Map serviceCtx = [
+ orderId: 'TEST_DEMO10090',
+ orderItemSeqId: '00001',
+ shipGroupSeqId: '00001',
+ userLogin: EntityQuery.use(delegator).from('UserLogin').where('userLoginId', 'system').cache().queryOne()
+ ]
+ Map serviceResult = dispatcher.runSync('checkCreateStockRequirementAtp', serviceCtx)
+ assert ServiceUtil.isSuccess(serviceResult)
+ }
}