@IntegrationTest public class BtgResultCleaningJobTest extends BTGIntegrationTest
| Modifier and Type | Field and Description |
|---|---|
protected static String |
SELECT_BTG_RESULT |
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, 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, websiteCdefaultLanguage, jaloSession| Constructor and Description |
|---|
BtgResultCleaningJobTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertSegmentResultExists(int expectedSize,
BTGResultScope scope) |
protected BTGSegmentModel |
createAndSaveSegment(BTGResultScope resultScope) |
protected BTGResultCleaningCronJobModel |
createCronJobModel(int resultMaxAge,
BTGResultScope resultScope) |
protected void |
createResults(BTGResultScope scope,
UserModel user) |
protected void |
createResultsForBothScopes() |
protected void |
evaluateSegmentsForUser(BTGEvaluationContext context,
UserModel user) |
protected List<BTGAbstractResultModel> |
getBtgResults() |
void |
testCleanOnlyOldResults() |
void |
testCleanOnlySelectedScopeResults() |
void |
testCleanResult() |
void |
testCleanSessionResult() |
void |
testMaxResultAgeShouldBeGreaterThanZero() |
void |
testNoResultToRemove() |
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_BTG_RESULT
public void testNoResultToRemove()
public void testMaxResultAgeShouldBeGreaterThanZero()
public void testCleanOnlySelectedScopeResults()
throws Exception
Exceptionprotected BTGResultCleaningCronJobModel createCronJobModel(int resultMaxAge, BTGResultScope resultScope)
protected void createResults(BTGResultScope scope, UserModel user) throws SegmentEvaluationException, Exception
SegmentEvaluationExceptionExceptionprotected void createResultsForBothScopes()
throws SegmentEvaluationException,
Exception
SegmentEvaluationExceptionExceptionprotected BTGSegmentModel createAndSaveSegment(BTGResultScope resultScope)
protected void evaluateSegmentsForUser(BTGEvaluationContext context, UserModel user) throws Exception, SegmentEvaluationException
ExceptionSegmentEvaluationExceptionprotected void assertSegmentResultExists(int expectedSize,
BTGResultScope scope)
protected List<BTGAbstractResultModel> getBtgResults()
Copyright © 2017 SAP SE. All Rights Reserved.