You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2019/10/13 09:32:20 UTC
svn commit: r1868388 -
/ofbiz/ofbiz-framework/trunk/applications/order/src/main/groovy/org/apache/ofbiz/order/OrderReturnTests.groovy
Author: jleroux
Date: Sun Oct 13 09:32:19 2019
New Revision: 1868388
URL: http://svn.apache.org/viewvc?rev=1868388&view=rev
Log:
Improved: Unit test case for service - ProcessRefundReturnForReplacement
(OFBIZ-8868)
OrderTests.groovy has been splitter in other files, this test fits in
OrderReturnTests.groovy
Thanks: Avnindra Sharma for initial test and Suraj for Groovy conversion
Modified:
ofbiz/ofbiz-framework/trunk/applications/order/src/main/groovy/org/apache/ofbiz/order/OrderReturnTests.groovy
Modified: ofbiz/ofbiz-framework/trunk/applications/order/src/main/groovy/org/apache/ofbiz/order/OrderReturnTests.groovy
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/src/main/groovy/org/apache/ofbiz/order/OrderReturnTests.groovy?rev=1868388&r1=1868387&r2=1868388&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/order/src/main/groovy/org/apache/ofbiz/order/OrderReturnTests.groovy (original)
+++ ofbiz/ofbiz-framework/trunk/applications/order/src/main/groovy/org/apache/ofbiz/order/OrderReturnTests.groovy Sun Oct 13 09:32:19 2019
@@ -207,4 +207,12 @@ class OrderReturnTests extends OFBizTest
assert ServiceUtil.isSuccess(serviceResult)
assert serviceResult.returnId != null
}
+ void testProcessRefundReturnForReplacement() {
+ Map serviceCtx = [
+ orderId: 'TEST_DEMO10090',
+ userLogin: EntityQuery.use(delegator).from('UserLogin').where('userLoginId', 'system').cache().queryOne()
+ ]
+ Map serviceResult = dispatcher.runSync('processRefundReturnForReplacement', serviceCtx)
+ assert ServiceUtil.isSuccess(serviceResult)
+ }
}
\ No newline at end of file