Skip to content

Commit

Permalink
Improved: Unit test case for service - CheckPaymentAmountForRefund.
Browse files Browse the repository at this point in the history
(OFBIZ-8852)
Thanks Avnindra Sharma for reporting the issue and Yogesh Naroliya for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1860000 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
surajkhurana committed May 25, 2019
1 parent 0e3ebf9 commit e51b05e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions applications/order/groovyScripts/test/OrderTests.groovy
Expand Up @@ -50,4 +50,12 @@ class OrderTests extends GroovyScriptTestCase {
assert ServiceUtil.isSuccess(serviceResult)
assert serviceResult.statusId != null
}

void testCheckPaymentAmountForRefund() {
Map serviceCtx = [:]
serviceCtx.returnId = '1009'
serviceCtx.userLogin = EntityQuery.use(delegator).from('UserLogin').where('userLoginId', 'system').cache().queryOne()
Map serviceResult = dispatcher.runSync('checkPaymentAmountForRefund', serviceCtx)
assert ServiceUtil.isSuccess(serviceResult)
}
}

0 comments on commit e51b05e

Please sign in to comment.