Class DefaultBundleRuleServiceTest
java.lang.Object
de.hybris.platform.configurablebundleservices.bundle.impl.DefaultBundleRuleServiceTest
JUnit test suite for
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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BundleRuleServicevoidsetBundleRuleService(BundleRuleService bundleRuleService) voidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
thrown
public org.junit.rules.ExpectedException thrown
-
-
Constructor Details
-
DefaultBundleRuleServiceTest
public DefaultBundleRuleServiceTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testGetChangePriceBundleRuleForOrderEntryWhenNoCartEntry
public void testGetChangePriceBundleRuleForOrderEntryWhenNoCartEntry() -
testGetChangePriceBundleRuleWhenNoBundleTemplate
public void testGetChangePriceBundleRuleWhenNoBundleTemplate() -
testGetChangePriceBundleRuleWhenNoTargetProduct
public void testGetChangePriceBundleRuleWhenNoTargetProduct() -
testGetChangePriceBundleRuleWhenNoConditionalProduct
public void testGetChangePriceBundleRuleWhenNoConditionalProduct() -
testGetChangePriceBundleRuleWhenNoCurrency
public void testGetChangePriceBundleRuleWhenNoCurrency() -
testGetChangePriceBundleRuleWithLowestPriceWhenNoProduct
public void testGetChangePriceBundleRuleWithLowestPriceWhenNoProduct() -
testGetChangePriceBundleRuleWithLowestPriceWhenNoCurrency
public void testGetChangePriceBundleRuleWithLowestPriceWhenNoCurrency() -
testGetChangePriceBundleRuleWithLowestPrice
public void testGetChangePriceBundleRuleWithLowestPrice() -
shouldReturnNullForStandalone
public void shouldReturnNullForStandalone() -
getBundleRuleService
-
setBundleRuleService
-