@Test
public void grantResalePermission_ResellerRevShareAtMP() throws Exception {
// given
OfferingType resaleType = OfferingType.RESELLER;
setup(resaleType, false, false);
// when
resaleCopy = sppslBean.grantResalePermission(
productTemplate.getProductId(), supplier.getOrganizationId(),
grantee.getOrganizationId(), resaleType);
// then
verifyResaleCopy();
InOrder inOrder = inOrder(ds);
inOrder.verify(ds).persist(resaleCopy);
ArgumentCaptor<CatalogEntry> argCatEntry = ArgumentCaptor
.forClass(CatalogEntry.class);
inOrder.verify(ds, new Times(2)).persist(argCatEntry.capture());
verifyCreatedCatalogEntry(argCatEntry.getValue(), resaleType);
verifyImageResource();
verify(lsl).setLocalizedValues(resaleCopy.getKey(),
LocalizedObjectTypes.RESELLER_PRICEMODEL_LICENSE,
priceModelLicenses);
verify(spsl).copyDefaultPaymentEnablement(resaleCopy, grantee);
}
ServiceProvisioningPartnerServiceLocalBeanGrantResalePermissionTest.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:development
作者:
评论列表
文章目录