Author: surajk
Date: Sun Oct 6 11:46:24 2019
New Revision: 1868054
URL: http://svn.apache.org/viewvc?rev=1868054&view=rev
Log:
Improved: Unit test case for service - ProcessRefundReturn.
(OFBIZ-8867)
Thanks: Avnindra Sharma for reporting, Rushikesh Mawal 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=1868054&r1=1868053&r2=1868054&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:46:24 2019
@@ -295,4 +295,13 @@ class OrderTests extends OFBizTestCase {
assert ServiceUtil.isSuccess(serviceResult)
assert serviceResult.initialItemCost != null
}
+ void testProcessRefundReturn() {
+ Map serviceCtx = [
+ returnId: '1009',
+ returnTypeId: 'RTN_REFUND',
+ userLogin:
EntityQuery.use(delegator).from('UserLogin').where('userLoginId',
'system').cache().queryOne()
+ ]
+ Map serviceResult = dispatcher.runSync('processRefundReturn',
serviceCtx)
+ assert ServiceUtil.isSuccess(serviceResult)
+ }
}