Improved: Unit test case for service - CheckCreateStockRequirementAtp.
(OFBIZ-8938) Thanks: Avnindra Sharma for reporting and Anushi Gupta for providing the updated patch. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867873 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -192,4 +192,14 @@ class OrderTests extends OFBizTestCase {
|
||||
Map serviceResult = dispatcher.runSync('processRefundOnlyReturn', serviceCtx)
|
||||
assert ServiceUtil.isSuccess(serviceResult)
|
||||
}
|
||||
void testCheckCreateStockRequirementAtp() {
|
||||
Map serviceCtx = [
|
||||
orderId: 'TEST_DEMO10090',
|
||||
orderItemSeqId: '00001',
|
||||
shipGroupSeqId: '00001',
|
||||
userLogin: EntityQuery.use(delegator).from('UserLogin').where('userLoginId', 'system').cache().queryOne()
|
||||
]
|
||||
Map serviceResult = dispatcher.runSync('checkCreateStockRequirementAtp', serviceCtx)
|
||||
assert ServiceUtil.isSuccess(serviceResult)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user