@IntegrationTest public class DefaultRAOActionTest extends AbstractRuleEngineServicesTest
RULE_ENGINGE_CONTEXT_NAME, RULE_ENGINGE_KBASE_JUNITdefaultLanguage, jaloSession| Constructor and Description |
|---|
DefaultRAOActionTest() |
| Modifier and Type | Method and Description |
|---|---|
protected Set<Object> |
addFacts(Object... singleFacts) |
protected OrderEntryRAO |
createOrderEntryRAO(String basePrice,
String currencyIso,
int quantity,
int entryNumber,
CartRAO cart,
ProductRAO product) |
protected ProductRAO |
createProduct(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, getEngineRuleDao, getKieBase, getMediaService, getModelService, getPlatformRuleEngineService, getReleaseId, getRuleEngineCalculationService, getRuleEngineContextDao, getRuleForFile, getRuleForFile, getTestRulesModule, initializeRuleEngine, initializeRuleEngine, prepareContext, provideRAOs, readRuleFile, setcreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic void setUp()
throws ImpExException
ImpExExceptionpublic void testAddOrderLevelDiscountAbsolute()
throws IOException
IOExceptionpublic void testChangeDeliveryModeFreeShipping()
throws IOException
IOExceptionpublic void testChangeDeliveryModeFreeOvernightShipping()
throws IOException
IOExceptionpublic void testAddProductDiscount()
throws IOException
IOExceptionpublic void testAddFixedPriceProductDiscount()
throws IOException
IOExceptionpublic void testAddFixedPriceProductDiscountConsumedEntries()
throws IOException
IOExceptionpublic void testTwoEntryRulesWithAvailableQuantityCondition()
throws IOException
IOExceptionpublic void testRuleForMoreEntriesAllConsumed()
throws IOException
IOExceptionprotected ProductRAO createProduct(String code)
protected OrderEntryRAO createOrderEntryRAO(String basePrice, String currencyIso, int quantity, int entryNumber, CartRAO cart, ProductRAO product)
Copyright © 2017 SAP SE. All Rights Reserved.