@IntegrationTest public class DefaultResultDataCachingBTGDaoTest 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 |
|---|
DefaultResultDataCachingBTGDaoTest() |
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 segmentInvalidationTest()
public void ruleInvalidationTest()
public void conditionInvalidationTest()
public void invalidationWhenNoCacheEntryExistsTest()
public void createAndGetSegmentResultTest()
public void createAndGetRuleResultTest()
public void createAndGetConditionResultTest()
public void sessionResultShouldNotBeStoredInDatabaseTest()
throws java.lang.Exception
java.lang.Exceptionpublic void permanentScopeResultsShouldBeStoredInDatabaseTest()
throws java.lang.Exception
java.lang.Exceptionpublic void permanentResultRemovedFromDatabaseTest()
throws java.lang.Exception
java.lang.Exceptionpublic void isSegmentResultChangedTest()
public void isRuleResultChangedTest()
public void isConditionResultChangedTest()
public void saveSegmentResultTest()
public void saveRuleResultTest()
public void saveConditionResultTest()
public void saveNotCreatedResultTest()
public void savePermanentScopeResultTest()
public void moveSessionResultTest()
public void moveSessionResultForPermanentScopeTest()
public void moveSessionResultForManySegmentsTest()
public void moveSessionResultWhenSegmentNotExistAnymoreTest()
public void moveSessionResultWhenRuleNotExistAnymoreTest()
public void moveSessionResultWhenConditionNotExistAnymoreTest()
protected int createResult(BTGSegmentModel segment, UserModel user, BTGResultScope scope, java.lang.String sessionId)
protected int countExistingResult(BTGSegmentModel segment, UserModel user, BTGResultScope scope, java.lang.String sessionId)
protected BTGSegmentResultModel createSegmentResultModel(UserModel user, BTGSegmentModel segment, BTGResultScope scope, boolean fulfilled, java.lang.String jaloSessionId, boolean forced, boolean invalidated)
protected BTGSegmentModel createAndSaveSegment(BTGResultScope resultScope)
protected BTGRuleModel createAndSaveRule(BTGResultScope resultScope)
protected BTGConditionModel createAndSaveCondition(BTGResultScope resultScope)
protected void assertConditionResultEquals(BTGConditionResultModel result1, BTGConditionResultModel result2, boolean pkShouldBeEqual, boolean userShouldBeEqual, boolean scopeShouldBeEqual)
protected void assertRuleResultEquals(BTGRuleResultModel result1, BTGRuleResultModel result2, boolean pkShouldBeEqual, boolean userShouldBeEqual, boolean scopeShouldBeEqual)
protected void assertSegmentResultEquals(BTGSegmentResultModel result1, BTGSegmentResultModel result2, boolean pkShouldBeEqual, boolean userShouldBeEqual, boolean scopeShouldBeEqual)
protected void assertAbstractResutlEquals(BTGAbstractResultModel result1, BTGAbstractResultModel result2, boolean pkShouldBeEqual, boolean scopeShouldBeEqual)
protected void assertResultExistsInDatabase(java.lang.String sessionId,
int resultCount)
protected void assertThereIsNoResultInDatabase(java.lang.String sessionId)
protected java.util.List<BTGAbstractResultModel> getBtgResultForSession(java.lang.String sessionId)
Copyright © 2018 SAP SE. All Rights Reserved.