svn commit: r1868052 - /ofbiz/ofbiz-framework/trunk/applications/order/src/main/groovy/org/apache/ofbiz/order/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: r1868052 - /ofbiz/ofbiz-framework/trunk/applications/order/src/main/groovy/org/apache/ofbiz/order/OrderTests.groovy

surajk
Author: surajk
Date: Sun Oct  6 11:35:43 2019
New Revision: 1868052

URL: http://svn.apache.org/viewvc?rev=1868052&view=rev
Log:
Improved: Unit test case for service - ProcessRefundImmediatelyReturn.
(OFBIZ-8865)
Thanks: Avnindra Sharma for reporting, 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=1868052&r1=1868051&r2=1868052&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:35:43 2019
@@ -212,7 +212,6 @@ class OrderTests extends OFBizTestCase {
         Map serviceResult = dispatcher.runSync('associatedRequirementWithRequestItem', serviceCtx)
         assert ServiceUtil.isSuccess(serviceResult)
     }
-    
     void testSendOrderChangeNotification() {
         Map serviceCtx = [
                   orderId: 'TEST_DEMO10090',
@@ -223,7 +222,6 @@ class OrderTests extends OFBizTestCase {
         assert ServiceUtil.isSuccess(serviceResult)
         assert serviceResult.emailType.equals("PRDS_ODR_CHANGE")
     }
-    
     void testSendOrderBackorderNotification() {
         Map serviceCtx = [
                   orderId: 'TEST_DEMO10090',
@@ -234,7 +232,6 @@ class OrderTests extends OFBizTestCase {
         assert ServiceUtil.isSuccess(serviceResult)
         assert serviceResult.emailType.equals("PRDS_ODR_BACKORDER")
     }
-    
     void testsendOrderPayRetryNotification() {
         Map serviceCtx = [
                   orderId: 'TEST_DEMO10090',
@@ -245,7 +242,6 @@ class OrderTests extends OFBizTestCase {
         assert ServiceUtil.isSuccess(serviceResult)
         assert serviceResult.emailType.equals("PRDS_ODR_PAYRETRY")
     }
-    
     void testsendOrderCompleteNotification() {
         Map serviceCtx = [
                   orderId: 'TEST_DEMO10090',
@@ -281,4 +277,12 @@ class OrderTests extends OFBizTestCase {
         Map serviceResult = dispatcher.runSync('processCrossShipReplacementReturn', serviceCtx)
         assert ServiceUtil.isSuccess(serviceResult)
     }
+    void testProcessRefundImmediatelyReturn() {
+        Map serviceCtx = [
+            returnId: '1009',
+            userLogin: EntityQuery.use(delegator).from('UserLogin').where('userLoginId', 'system').cache().queryOne()
+        ]
+        Map serviceResult = dispatcher.runSync('processRefundImmediatelyReturn', serviceCtx)
+        assert ServiceUtil.isSuccess(serviceResult)
+    }
 }