@UnitTest public class BundleAddToCartMethodHookTest extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected BundleCartHookHelper |
bundleCartHookHelper |
protected BundleCartValidator |
bundleCartValidator |
protected DefaultCartBundleComponentEditableChecker |
bundleComponentEditableChecker |
protected BundleRuleService |
bundleRuleService |
protected BundleTemplateService |
bundleTemplateService |
protected CartService |
cartService |
protected DefaultCartBundleComponentEditableChecker |
editableChecker |
protected EntryGroupService |
entryGroupService |
protected BundleAddToCartMethodHook |
hook |
protected L10NService |
l10NService |
protected ModelService |
modelService |
ExpectedException |
thrown |
| Constructor and Description |
|---|
BundleAddToCartMethodHookTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setup() |
void |
shouldAssignBundleTemplate() |
void |
shouldCheckThatTheProductIsAllowed() |
void |
shouldCheckTheComponentBelongToTheRightTemplate() |
void |
shouldCheckTheComponentExists() |
void |
shouldCreateBundleTreeInCart() |
void |
shouldDenyAddingOfNonIndividualProducts() |
void |
shouldGenerateCorrectBundleNo() |
void |
shouldNotAllowInvalidComponentNullEntryGroup() |
void |
shouldNotAllowInvalidRequiredComponents() |
void |
shouldNotCheckRequiredComponentNullEntryGroup() |
void |
shouldNotGetBundleNoFromTheEntryIsBeingAdded() |
void |
shouldSkipNotBundledCalls() |
void |
shouldUpdateLeafComponentsErroneousStatus() |
protected DefaultCartBundleComponentEditableChecker editableChecker
protected L10NService l10NService
protected ModelService modelService
protected CartService cartService
protected BundleTemplateService bundleTemplateService
protected BundleRuleService bundleRuleService
protected EntryGroupService entryGroupService
protected BundleCartValidator bundleCartValidator
protected BundleCartHookHelper bundleCartHookHelper
protected DefaultCartBundleComponentEditableChecker bundleComponentEditableChecker
protected BundleAddToCartMethodHook hook
public ExpectedException thrown
public void setup()
public void shouldSkipNotBundledCalls()
throws CommerceCartModificationException
public void shouldDenyAddingOfNonIndividualProducts()
throws CommerceCartModificationException
public void shouldCheckTheComponentExists()
throws CommerceCartModificationException
public void shouldCheckTheComponentBelongToTheRightTemplate()
throws CommerceCartModificationException
public void shouldAssignBundleTemplate()
throws CommerceCartModificationException
public void shouldNotCheckRequiredComponentNullEntryGroup()
throws CommerceCartModificationException
public void shouldNotAllowInvalidComponentNullEntryGroup()
throws CommerceCartModificationException
public void shouldNotAllowInvalidRequiredComponents()
throws CommerceCartModificationException
public void shouldCheckThatTheProductIsAllowed()
throws CommerceCartModificationException
public void shouldCreateBundleTreeInCart()
throws CommerceCartModificationException
public void shouldGenerateCorrectBundleNo()
public void shouldNotGetBundleNoFromTheEntryIsBeingAdded()
public void shouldUpdateLeafComponentsErroneousStatus()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.