Class DefaultRAOActionTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.droolsruleengineservices.impl.AbstractRuleEngineServicesTest
-
- de.hybris.platform.promotionengineservices.commerce.DefaultRAOActionTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class DefaultRAOActionTest extends AbstractRuleEngineServicesTest
Tests the RAOActions.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.droolsruleengineservices.impl.AbstractRuleEngineServicesTest
RULE_ENGINGE_CONTEXT_NAME, RULE_ENGINGE_KBASE_JUNIT, RULE_ENGINGE_KMODULE_JUNIT
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description DefaultRAOActionTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Set<java.lang.Object>addFacts(java.lang.Object... singleFacts)protected OrderEntryRAOcreateOrderEntryRAO(java.lang.String basePrice, java.lang.String currencyIso, int quantity, int entryNumber, CartRAO cart, java.lang.String productCode)voidsetUp()voidtestAddFixedPriceProductDiscount()voidtestAddFixedPriceProductDiscountConsumedEntries()voidtestAddOrderLevelDiscountAbsolute()voidtestAddProductDiscount()voidtestChangeDeliveryModeFreeOvernightShipping()voidtestChangeDeliveryModeFreeShipping()voidtestRuleEvaluation()voidtestRuleForMoreEntriesAllConsumed()voidtestTwoEntryRulesWithAvailableQuantityCondition()-
Methods inherited from class de.hybris.platform.droolsruleengineservices.impl.AbstractRuleEngineServicesTest
buildCartWithCodeAndCurrency, buildNotEmptyCartWithCodeAndCurrency, buildRAOsForCartWithCode, buildRAOsForNotEmptyCartWithCode, createCartRAO, createDeliveryModeRAO, createOrderEntryRAO, createOrderEntryRAO, evaluate, evaluateAndFailOnError, getCommerceRuleEngineService, getDroolsKIEBaseDao, getEngineRuleDao, getKieBase, getKieBaseOrCreateNew, getMediaService, getModelService, getPlatformRuleEngineService, getReleaseId, getRuleEngineCalculationService, getRuleEngineContextDao, getRuleForFile, getRuleForFile, getRulesModuleDao, getTestRulesModule, initializeRuleEngine, initializeRuleEngine, prepareContext, provideRAOs, readRuleFile, set
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setUp
public void setUp() throws ImpExException- Throws:
ImpExException
-
testAddOrderLevelDiscountAbsolute
public void testAddOrderLevelDiscountAbsolute() throws java.io.IOException- Throws:
java.io.IOException
-
testChangeDeliveryModeFreeShipping
public void testChangeDeliveryModeFreeShipping() throws java.io.IOException- Throws:
java.io.IOException
-
testChangeDeliveryModeFreeOvernightShipping
public void testChangeDeliveryModeFreeOvernightShipping() throws java.io.IOException- Throws:
java.io.IOException
-
testAddProductDiscount
public void testAddProductDiscount() throws java.io.IOException- Throws:
java.io.IOException
-
testAddFixedPriceProductDiscount
public void testAddFixedPriceProductDiscount() throws java.io.IOException- Throws:
java.io.IOException
-
testAddFixedPriceProductDiscountConsumedEntries
public void testAddFixedPriceProductDiscountConsumedEntries() throws java.io.IOException- Throws:
java.io.IOException
-
testTwoEntryRulesWithAvailableQuantityCondition
public void testTwoEntryRulesWithAvailableQuantityCondition() throws java.io.IOException- Throws:
java.io.IOException
-
testRuleForMoreEntriesAllConsumed
public void testRuleForMoreEntriesAllConsumed() throws java.io.IOException- Throws:
java.io.IOException
-
testRuleEvaluation
public void testRuleEvaluation() throws java.io.IOException- Throws:
java.io.IOException
-
createOrderEntryRAO
protected OrderEntryRAO createOrderEntryRAO(java.lang.String basePrice, java.lang.String currencyIso, int quantity, int entryNumber, CartRAO cart, java.lang.String productCode)
-
addFacts
protected java.util.Set<java.lang.Object> addFacts(java.lang.Object... singleFacts)
-
-