@IntegrationTest public class DefaultRAOActionTest extends AbstractRuleEngineServicesTest
RULE_ENGINGE_CONTEXT_NAME, RULE_ENGINGE_KBASE_JUNIT, RULE_ENGINGE_KMODULE_JUNITimportServicejaloSession| Constructor and Description |
|---|
DefaultRAOActionTest() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Set<java.lang.Object> |
addFacts(java.lang.Object... singleFacts) |
protected OrderEntryRAO |
createOrderEntryRAO(java.lang.String basePrice,
java.lang.String currencyIso,
int quantity,
int entryNumber,
CartRAO cart,
ProductRAO product) |
protected ProductRAO |
createProduct(java.lang.String code) |
void |
setUp() |
void |
testAddFixedPriceProductDiscount() |
void |
testAddFixedPriceProductDiscountConsumedEntries() |
void |
testAddOrderLevelDiscountAbsolute() |
void |
testAddProductDiscount() |
void |
testChangeDeliveryModeFreeOvernightShipping() |
void |
testChangeDeliveryModeFreeShipping() |
void |
testRuleForMoreEntriesAllConsumed() |
void |
testTwoEntryRulesWithAvailableQuantityCondition() |
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, setcreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
throws ImpExException
ImpExExceptionpublic void testAddOrderLevelDiscountAbsolute()
throws java.io.IOException
java.io.IOExceptionpublic void testChangeDeliveryModeFreeShipping()
throws java.io.IOException
java.io.IOExceptionpublic void testChangeDeliveryModeFreeOvernightShipping()
throws java.io.IOException
java.io.IOExceptionpublic void testAddProductDiscount()
throws java.io.IOException
java.io.IOExceptionpublic void testAddFixedPriceProductDiscount()
throws java.io.IOException
java.io.IOExceptionpublic void testAddFixedPriceProductDiscountConsumedEntries()
throws java.io.IOException
java.io.IOExceptionpublic void testTwoEntryRulesWithAvailableQuantityCondition()
throws java.io.IOException
java.io.IOExceptionpublic void testRuleForMoreEntriesAllConsumed()
throws java.io.IOException
java.io.IOExceptionprotected ProductRAO createProduct(java.lang.String code)
protected OrderEntryRAO createOrderEntryRAO(java.lang.String basePrice, java.lang.String currencyIso, int quantity, int entryNumber, CartRAO cart, ProductRAO product)
protected java.util.Set<java.lang.Object> addFacts(java.lang.Object... singleFacts)
Copyright © 2018 SAP SE. All Rights Reserved.