public class CleanBtgSessionResultTaskRunnerTest extends BTGIntegrationTest
| Modifier and Type | Field and Description |
|---|---|
protected static String |
SELECT_RESULT_FOR_SESSION |
ALCOHOLS_ONLINE, ALCOHOLS_STAGED, anonymous, AUGISTINER, badTaste, BADTASTE, BEERS_ONLINE, BEERS_STAGED, btgEvaluationService, btgResultService, catalogService, categoryService, conditionEvaluatorRegistry, customerA, customerB, customerC, DRINKS, eur, EUR, EXPENSIVE_100, EXPENSIVE_150, EXPENSIVE_40, EXPENSIVE_60, expressionService, 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, websiteCdefaultLanguage, jaloSession| Constructor and Description |
|---|
CleanBtgSessionResultTaskRunnerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertSegmentResultExists(String sessionId) |
protected BTGSegmentModel |
createAndSaveSegment(BTGResultScope resultScope) |
protected void |
createResults(BTGResultScope scope,
UserModel user,
String sessionId) |
protected void |
evaluateSegmentsForUser(BTGEvaluationContext context,
UserModel user) |
protected List<BTGAbstractResultModel> |
getBtgResultForSession(String sessionId) |
void |
testCleanResultForAnonymousUser() |
void |
testCleanResultForUser() |
void |
testResultsForPermamentScopeAreNotRemoved() |
void |
testThatResulAreRemovedOnlyForSelectedSession() |
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, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedprotected static final String SELECT_RESULT_FOR_SESSION
public void testResultsForPermamentScopeAreNotRemoved()
throws Exception
Exceptionpublic void testCleanResultForAnonymousUser()
throws Exception
Exceptionpublic void testThatResulAreRemovedOnlyForSelectedSession()
throws Exception
Exceptionprotected void createResults(BTGResultScope scope, UserModel user, String sessionId) throws SegmentEvaluationException, Exception
SegmentEvaluationExceptionExceptionprotected BTGSegmentModel createAndSaveSegment(BTGResultScope resultScope)
protected void evaluateSegmentsForUser(BTGEvaluationContext context, UserModel user) throws Exception, SegmentEvaluationException
ExceptionSegmentEvaluationExceptionprotected void assertSegmentResultExists(String sessionId)
protected List<BTGAbstractResultModel> getBtgResultForSession(String sessionId)
Copyright © 2017 SAP SE. All Rights Reserved.