public class CleanBtgSessionResultTaskRunnerTest extends BTGIntegrationTest
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.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, websiteCimportServicedefaultLanguage, jaloSession| Constructor and Description |
|---|
CleanBtgSessionResultTaskRunnerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertSegmentResultExists(java.lang.String sessionId) |
protected BTGSegmentModel |
createAndSaveSegment(BTGResultScope resultScope) |
protected void |
createResults(BTGResultScope scope,
UserModel user,
java.lang.String sessionId) |
protected void |
evaluateSegmentsForUser(BTGEvaluationContext context,
UserModel user) |
protected java.util.List<BTGAbstractResultModel> |
getBtgResultForSession(java.lang.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, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionprotected static final java.lang.String SELECT_RESULT_FOR_SESSION
public void testCleanResultForUser()
throws java.lang.Exception
java.lang.Exceptionpublic void testResultsForPermamentScopeAreNotRemoved()
throws java.lang.Exception
java.lang.Exceptionpublic void testCleanResultForAnonymousUser()
throws java.lang.Exception
java.lang.Exceptionpublic void testThatResulAreRemovedOnlyForSelectedSession()
throws java.lang.Exception
java.lang.Exceptionprotected void createResults(BTGResultScope scope, UserModel user, java.lang.String sessionId) throws SegmentEvaluationException, java.lang.Exception
SegmentEvaluationExceptionjava.lang.Exceptionprotected BTGSegmentModel createAndSaveSegment(BTGResultScope resultScope)
protected void evaluateSegmentsForUser(BTGEvaluationContext context, UserModel user) throws java.lang.Exception, SegmentEvaluationException
java.lang.ExceptionSegmentEvaluationExceptionprotected void assertSegmentResultExists(java.lang.String sessionId)
protected java.util.List<BTGAbstractResultModel> getBtgResultForSession(java.lang.String sessionId)
Copyright © 2018 SAP SE. All Rights Reserved.