svn commit: r1861814 - /ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/test/OrderTests.groovy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1861814 - /ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/test/OrderTests.groovy

surajk
Author: surajk
Date: Sat Jun 22 05:31:11 2019
New Revision: 1861814

URL: http://svn.apache.org/viewvc?rev=1861814&view=rev
Log:
Improved: Unit test case for service - GetReturnAmountByOrder.
(OFBIZ-8861)
Thanks Avnindra Sharma for reporting and Yogesh Naroliya for provind the updated patch.

Modified:
    ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/test/OrderTests.groovy

Modified: ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/test/OrderTests.groovy
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/test/OrderTests.groovy?rev=1861814&r1=1861813&r2=1861814&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/test/OrderTests.groovy (original)
+++ ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/test/OrderTests.groovy Sat Jun 22 05:31:11 2019
@@ -119,4 +119,12 @@ class OrderTests extends GroovyScriptTes
         assert ServiceUtil.isSuccess(serviceResult)
         assert serviceResult.returnId != null
     }
+    void testGetReturnAmountByOrder() {
+        Map serviceCtx = [
+                returnId: '1009',
+                userLogin: EntityQuery.use(delegator).from('UserLogin').where('userLoginId', 'system').cache().queryOne()
+        ]
+        Map serviceResult = dispatcher.runSync('getReturnAmountByOrder', serviceCtx)
+        assert ServiceUtil.isSuccess(serviceResult)
+    }
 }
\ No newline at end of file