@UnitTest public class DefaultBundleRuleServiceTest extends java.lang.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 setUp()
throws java.lang.Exception
java.lang.Exceptionpublic 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()
public void shouldReturnNullForStandalone()
protected BundleRuleService getBundleRuleService()
public void setBundleRuleService(BundleRuleService bundleRuleService)
Copyright © 2018 SAP SE. All Rights Reserved.