Author: surajk
Date: Sun Oct 6 11:29:23 2019
New Revision: 1868050
URL:
http://svn.apache.org/viewvc?rev=1868050&view=revLog:
Improved: Unit test case for service - ProcessCreditReturn.
(OFBIZ-8863)
Thanks: Avnindra Sharma for reporting, Rushikesh Mawal for providing the updated patch and Jacques for review.
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=1868050&r1=1868049&r2=1868050&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:29:23 2019
@@ -265,4 +265,12 @@ class OrderTests extends OFBizTestCase {
Map serviceResult = dispatcher.runSync('checkCreateOrderRequirement', serviceCtx)
assert ServiceUtil.isSuccess(serviceResult)
}
+ void testProcessCreditReturn() {
+ Map serviceCtx = [
+ returnId: '1009',
+ userLogin: EntityQuery.use(delegator).from('UserLogin').where('userLoginId', 'system').cache().queryOne()
+ ]
+ Map serviceResult = dispatcher.runSync('processCreditReturn', serviceCtx)
+ assert ServiceUtil.isSuccess(serviceResult)
+ }
}