public class BTGEvaluationServiceTest extends BTGIntegrationTest
ALCOHOLS_ONLINE, ALCOHOLS_STAGED, anonymous, AUGISTINER, badTaste, BADTASTE, BEERS_ONLINE, BEERS_STAGED, btgResultService, catalogService, categoryService, conditionEvaluatorRegistry, customerA, customerB, customerC, DRINKS, eur, EUR, EXPENSIVE_100, EXPENSIVE_150, EXPENSIVE_40, EXPENSIVE_60, expressionService, flexibleSearchService, GERMANBEERS_ONLINE, GERMANBEERS_STAGED, goodTaste, GOODTASTE, HACKERPSCHORR, i18nService, KROSTITZER, NONFULFILLING_PRODUCT_TEMPLATE, online, ONLINE, POLISHBEERS_ONLINE, POLISHBEERS_STAGED, productService, ruleEvaluator, segmentA, segmentACartRule, segmentAOrderRule, segmentB, segmentC, SOFTDRINKS_ONLINE, SOFTDRINKS_STAGED, staged, STAGED, TRADITIONALBEERS, typeService, TYSKIE, usd, USD, USER_A, USER_B, USER_C, userService, WEBSITE_A, WEBSITE_B, WEBSITE_C, websiteA, websiteB, websiteCimportServicedefaultLanguage, jaloSession| Constructor and Description |
|---|
BTGEvaluationServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
evaluateAnonymousSegment(BTGSegmentModel segment,
BTGEvaluationContext context) |
void |
processSegmentTest() |
void |
testCheckSegmentStatus() |
void |
testEvaluateAllSegmentsForAnonymous() |
void |
testEvaluateAllSegmentsForAnonymousAndMoveResults() |
void |
testEvaluateAllSegmentsInDefaultSegmentScope() |
void |
testEvaluateAllSegmentsInSessionResultScopeTest() |
void |
testEvaluateAllSegmentsNotTest() |
void |
testEvaluateAllSegmentsTest() |
void |
testProcessSegmentNot() |
addToCart, addToCartWithCatalog, createBooleanLiteralOperand, createBTGData, createBTGReferenceCategoriesOperand, createBTGReferenceCountriesOperandModel, createCategoriesinOrderOperand, createCustomerCountryOperand, createCustomerGenderOperand, createCustomerPostalCodeOperand, createDoubleLiteralOperand, createExpression, createExpressionInRuleAndSegment, createGenderLiteralOperand, createIntLiteralOperand, createLastOrderDateOperand, createNumberOfOrdersOperand, createOperandModel, createOperator, createOrderOperand, createOrderOperand, createPriceReferenceOperand, createProductsInOrdersOperand, createProductsOperand, createQuantityOfProductInCartOperand, createQuantityOfProductInCartOperand, createReferenceDateOperand, createReferenceExactDateOperand, createRule, createRule, createSegment, createSegment, createSegmentA, createSegmentB, createSegmentC, createStringLiteralOperand, getAttributeDescriptor, getDrinksCatalogVersion, getDrinksOnlineCatalogVersion, placeAdditionalOrders, placeOrdersForSegmentA, placeOrdersForSegmentB, placeOrdersForUserC, placeRandomOrdersNotFulfillingConditions, placeRandomOrdersTotalSum, placeTestOrder, removeUsersOrders, setCatalogVersions, setCurrencies, setCustomersAndUserGroups, setUp, setWebSitescreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void testEvaluateAllSegmentsTest()
throws java.lang.Exception
java.lang.Exceptionpublic void testEvaluateAllSegmentsInSessionResultScopeTest()
throws java.lang.Exception
java.lang.Exceptionpublic void testEvaluateAllSegmentsForAnonymous()
throws java.lang.Exception
java.lang.Exceptionprotected void evaluateAnonymousSegment(BTGSegmentModel segment, BTGEvaluationContext context) throws java.lang.Exception, SegmentEvaluationException
java.lang.ExceptionSegmentEvaluationExceptionpublic void testEvaluateAllSegmentsForAnonymousAndMoveResults()
throws java.lang.Exception
java.lang.Exceptionpublic void testEvaluateAllSegmentsInDefaultSegmentScope()
throws java.lang.Exception
java.lang.Exceptionpublic void testEvaluateAllSegmentsNotTest()
throws java.lang.Exception
java.lang.Exceptionpublic void processSegmentTest()
throws java.lang.Exception
java.lang.Exceptionpublic void testProcessSegmentNot()
throws java.lang.Exception
java.lang.Exceptionpublic void testCheckSegmentStatus()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.