@UnitTest public class DefaultBundleRuleServiceTest extends Object
FindBundlePricingWithCurrentPriceFactoryStrategy and DefaultBundleRuleService.
The good cases are tested in the integration tests as it makes no sense to mock a complex bundle template/rule system
especially if the logic for evaluating the rules is implemented in a flexible search query.| Modifier and Type | Field and Description |
|---|---|
ExpectedException |
thrown |
| Constructor and Description |
|---|
DefaultBundleRuleServiceTest() |
public void testGetChangePriceBundleRuleForOrderEntryWhenNoCartEntry()
public void testGetChangePriceBundleRuleForOrderEntryWhenNoBundleTemplate()
public void testGetChangePriceBundleRuleWhenNoBundleTemplate()
public void testGetChangePriceBundleRuleWhenNoTargetProduct()
public void testGetChangePriceBundleRuleWhenNoConditionalProduct()
public void testGetChangePriceBundleRuleWhenNoCurrency()
public void testGetDisableRuleForBundleProductWhenNoCart()
public void testGetDisableRuleForBundleProductWhenNoProduct()
public void testGetDisableRuleForBundleProductWhenNoTemplate()
public void testGetChangePriceBundleRule2WhenNoBundleTemplate()
public void testGetChangePriceBundleRule2WhenNoTargetProduct()
public void testGetChangePriceBundleRule2WhenNoCart()
public void testGetChangePriceBundleRuleWithLowestPriceWhenNoProduct()
public void testGetChangePriceBundleRuleWithLowestPriceWhenNoCurrency()
public void testGetChangePriceBundleRuleWithLowestPrice()
protected BundleRuleService getBundleRuleService()
public void setBundleRuleService(BundleRuleService bundleRuleService)
Copyright © 2017 SAP SE. All Rights Reserved.