Class DefaultBundleRuleServiceTest
- java.lang.Object
-
- de.hybris.platform.configurablebundleservices.bundle.impl.DefaultBundleRuleServiceTest
-
@UnitTest public class DefaultBundleRuleServiceTest extends java.lang.Object
JUnit test suite forFindBundlePricingWithCurrentPriceFactoryStrategyandDefaultBundleRuleService. 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 Modifier and Type Field Description org.junit.rules.ExpectedExceptionthrown
-
Constructor Summary
Constructors Constructor Description DefaultBundleRuleServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BundleRuleServicegetBundleRuleService()voidsetBundleRuleService(BundleRuleService bundleRuleService)voidsetUp()voidshouldReturnNullForStandalone()voidtestGetChangePriceBundleRuleForOrderEntryWhenNoCartEntry()voidtestGetChangePriceBundleRuleWhenNoBundleTemplate()voidtestGetChangePriceBundleRuleWhenNoConditionalProduct()voidtestGetChangePriceBundleRuleWhenNoCurrency()voidtestGetChangePriceBundleRuleWhenNoTargetProduct()voidtestGetChangePriceBundleRuleWithLowestPrice()voidtestGetChangePriceBundleRuleWithLowestPriceWhenNoCurrency()voidtestGetChangePriceBundleRuleWithLowestPriceWhenNoProduct()
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.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
protected BundleRuleService getBundleRuleService()
-
setBundleRuleService
public void setBundleRuleService(BundleRuleService bundleRuleService)
-
-