public abstract class BTGIntegrationTest extends ServicelayerTest
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ALCOHOLS_ONLINE |
protected static java.lang.String |
ALCOHOLS_STAGED |
protected UserModel |
anonymous |
protected static java.lang.String |
AUGISTINER |
protected UserGroupModel |
badTaste |
protected static java.lang.String |
BADTASTE |
protected static java.lang.String |
BEERS_ONLINE |
protected static java.lang.String |
BEERS_STAGED |
protected BTGEvaluationService |
btgEvaluationService |
protected BTGResultService |
btgResultService |
protected CatalogService |
catalogService |
protected CategoryService |
categoryService |
protected ConditionEvaluatorRegistry |
conditionEvaluatorRegistry |
protected CustomerModel |
customerA |
protected CustomerModel |
customerB |
protected CustomerModel |
customerC |
protected static java.lang.String |
DRINKS |
protected CurrencyModel |
eur |
protected static java.lang.String |
EUR |
protected static java.lang.String |
EXPENSIVE_100 |
protected static java.lang.String |
EXPENSIVE_150 |
protected static java.lang.String |
EXPENSIVE_40 |
protected static java.lang.String |
EXPENSIVE_60 |
protected ExpressionService |
expressionService |
protected FlexibleSearchService |
flexibleSearchService |
protected static java.lang.String |
GERMANBEERS_ONLINE |
protected static java.lang.String |
GERMANBEERS_STAGED |
protected UserGroupModel |
goodTaste |
protected static java.lang.String |
GOODTASTE |
protected static java.lang.String |
HACKERPSCHORR |
protected I18NService |
i18nService |
protected static java.lang.String |
KROSTITZER |
protected ModelService |
modelService |
protected static java.lang.String |
NONFULFILLING_PRODUCT_TEMPLATE |
protected CatalogVersionModel |
online |
protected static java.lang.String |
ONLINE |
protected static java.lang.String |
POLISHBEERS_ONLINE |
protected static java.lang.String |
POLISHBEERS_STAGED |
protected ProductService |
productService |
protected DefaultRuleEvaluator |
ruleEvaluator |
protected BTGSegmentModel |
segmentA |
protected BTGRuleModel |
segmentACartRule |
protected BTGRuleModel |
segmentAOrderRule |
protected BTGSegmentModel |
segmentB |
protected BTGSegmentModel |
segmentC |
protected static java.lang.String |
SOFTDRINKS_ONLINE |
protected static java.lang.String |
SOFTDRINKS_STAGED |
protected CatalogVersionModel |
staged |
protected static java.lang.String |
STAGED |
protected static java.lang.String |
TRADITIONALBEERS |
protected TypeService |
typeService |
protected static java.lang.String |
TYSKIE |
protected CurrencyModel |
usd |
protected static java.lang.String |
USD |
protected static java.lang.String |
USER_A |
protected static java.lang.String |
USER_B |
protected static java.lang.String |
USER_C |
protected UserService |
userService |
protected static java.lang.String |
WEBSITE_A |
protected static java.lang.String |
WEBSITE_B |
protected static java.lang.String |
WEBSITE_C |
protected CMSSiteModel |
websiteA |
protected CMSSiteModel |
websiteB |
protected CMSSiteModel |
websiteC |
importServicedefaultLanguage, jaloSession| Constructor and Description |
|---|
BTGIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToCart(java.lang.String... products) |
protected void |
addToCartWithCatalog(java.lang.String catalogVersionName,
java.lang.String... products) |
protected BTGAbstractLiteralOperandModel |
createBooleanLiteralOperand(boolean value) |
protected void |
createBTGData() |
protected BTGReferenceCategoriesOperandModel |
createBTGReferenceCategoriesOperand(java.lang.String... catNames) |
protected BTGReferenceCountriesOperandModel |
createBTGReferenceCountriesOperandModel(java.lang.String... isoCodes) |
protected BTGCategoriesInOrdersOperandModel |
createCategoriesinOrderOperand(java.lang.String name,
boolean withSuperCat,
int lastOrders) |
protected BTGUserCountryOperandModel |
createCustomerCountryOperand(java.lang.String code) |
protected BTGUserGenderOperandModel |
createCustomerGenderOperand(java.lang.String code) |
protected BTGUserAddressPostalCodeOperandModel |
createCustomerPostalCodeOperand(java.lang.String code) |
protected BTGAbstractLiteralOperandModel |
createDoubleLiteralOperand(java.lang.Double literalValue) |
protected BTGConditionModel |
createExpression(BTGOperandModel leftOperand,
BTGOperatorModel operator,
BTGOperandModel rightOperand) |
protected BTGConditionModel |
createExpressionInRuleAndSegment(BTGOperandModel leftOperand,
BTGOperatorModel operator,
BTGOperandModel rightOperand) |
protected BTGAbstractLiteralOperandModel |
createGenderLiteralOperand(Gender literalValue) |
protected BTGAbstractLiteralOperandModel |
createIntLiteralOperand(java.lang.Integer literalValue) |
protected BTGLastOrderDateOperandModel |
createLastOrderDateOperand(java.lang.String name) |
protected BTGNumberOfOrdersOperandModel |
createNumberOfOrdersOperand(java.util.Date operantFrom,
java.util.Date operantTo,
java.lang.String name) |
protected BTGOperandModel |
createOperandModel(java.lang.String name,
java.lang.Class clazz) |
protected BTGOperatorModel |
createOperator(java.lang.String operatorString) |
protected <T extends BTGLastOrdersOperandModel> |
createOrderOperand(java.lang.Class<T> clazz,
int lastOrders,
java.lang.String name) |
protected <T extends BTGLastOrdersOperandModel> |
createOrderOperand(java.lang.Class<T> clazz,
java.lang.String name) |
protected BTGReferencePriceOperandModel |
createPriceReferenceOperand(double value,
java.lang.String currencyIso) |
protected BTGProductsInOrdersOperandModel |
createProductsInOrdersOperand(int lastOrders,
java.lang.String name) |
protected BTGReferenceProductsOperandModel |
createProductsOperand(java.lang.String... products) |
protected BTGQuantityOfProductInCartOperandModel |
createQuantityOfProductInCartOperand(java.lang.String code,
java.lang.String productName) |
protected BTGQuantityOfProductInCartOperandModel |
createQuantityOfProductInCartOperand(java.lang.String code,
java.lang.String catalogVersionName,
java.lang.String productName) |
protected BTGOperandModel |
createReferenceDateOperand(java.lang.String name,
IntervalResolution unit,
java.lang.Integer value) |
protected BTGReferenceExactDateOperandModel |
createReferenceExactDateOperand(java.lang.String name,
java.util.Date fromDate) |
protected BTGRuleModel |
createRule(CatalogVersionModel catVersion,
java.util.Collection<BTGConditionModel> conditions,
java.lang.String code,
BTGRuleType ruleType) |
protected BTGRuleModel |
createRule(java.lang.String name) |
protected BTGSegmentModel |
createSegment() |
protected BTGSegmentModel |
createSegment(BTGConditionEvaluationScope scope,
java.lang.String name,
CatalogVersionModel catVersion) |
protected void |
createSegmentA()
Segment A for WebSiteA and Online catalog Rule A1: Order Rule Sum of values of last 10 orders >= 1000
Each order value of last 10 orders >= 50
Last 5 orders contains product with code = 'augustinerhelles' Rule A2: Cart Rule Cart contains product
with code ='augustinerhelles' OutputAction: Add to group "Good Taste"
|
protected void |
createSegmentB()
Segment B for WebSite B and Online catalog Rule B1: User Rule User lives in Munich Rule B2: Order Rule Last 5
orders contains product with code = 'HACKERPSCHORR' OutputAction: Add to group "Bad Taste"
|
protected void |
createSegmentC()
Segment C for WebSiteA and Offline catalog Rule A1: Order Rule Sum of values of last 10 orders >= 2000 Each order
value of last 10 orders >= 50 Last 5 orders contains product with code = 'augustinerhelles' Rule A2: Cart Rule
Cart contains product with code = 'augustinerhelles' OutputAction: Add to group "Good Taste"
|
protected BTGAbstractLiteralOperandModel |
createStringLiteralOperand(java.lang.String literalValue) |
protected AttributeDescriptorModel |
getAttributeDescriptor(java.lang.Class modelClass,
java.lang.String attributeQualifier) |
protected CatalogVersionModel |
getDrinksCatalogVersion(java.lang.String catalogVersionName) |
protected CatalogVersionModel |
getDrinksOnlineCatalogVersion() |
protected void |
placeAdditionalOrders() |
protected void |
placeOrdersForSegmentA(UserModel customer) |
protected void |
placeOrdersForSegmentB(CustomerModel customer) |
protected void |
placeOrdersForUserC() |
protected void |
placeRandomOrdersNotFulfillingConditions(int number,
UserModel customer) |
protected void |
placeRandomOrdersTotalSum(int number,
UserModel customer) |
protected OrderModel |
placeTestOrder(java.lang.String... products) |
protected void |
removeUsersOrders(UserModel user) |
protected void |
setCatalogVersions() |
protected void |
setCurrencies() |
protected void |
setCustomersAndUserGroups() |
void |
setUp() |
protected void |
setWebSites() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionprotected CustomerModel customerA
protected CustomerModel customerB
protected CustomerModel customerC
protected UserModel anonymous
protected static final java.lang.String USER_A
protected static final java.lang.String USER_B
protected static final java.lang.String USER_C
protected static final java.lang.String GOODTASTE
protected static final java.lang.String BADTASTE
protected UserGroupModel goodTaste
protected UserGroupModel badTaste
protected CMSSiteModel websiteA
protected CMSSiteModel websiteB
protected CMSSiteModel websiteC
protected static final java.lang.String WEBSITE_A
protected static final java.lang.String WEBSITE_B
protected static final java.lang.String WEBSITE_C
protected static final java.lang.String NONFULFILLING_PRODUCT_TEMPLATE
protected static final java.lang.String AUGISTINER
protected static final java.lang.String HACKERPSCHORR
protected static final java.lang.String TYSKIE
protected static final java.lang.String KROSTITZER
protected static final java.lang.String EXPENSIVE_150
protected static final java.lang.String EXPENSIVE_60
protected static final java.lang.String EXPENSIVE_100
protected static final java.lang.String EXPENSIVE_40
protected static final java.lang.String ONLINE
protected static final java.lang.String STAGED
protected static final java.lang.String DRINKS
protected CatalogVersionModel online
protected CatalogVersionModel staged
protected static final java.lang.String ALCOHOLS_ONLINE
protected static final java.lang.String ALCOHOLS_STAGED
protected static final java.lang.String BEERS_ONLINE
protected static final java.lang.String BEERS_STAGED
protected static final java.lang.String POLISHBEERS_ONLINE
protected static final java.lang.String POLISHBEERS_STAGED
protected static final java.lang.String TRADITIONALBEERS
protected static final java.lang.String GERMANBEERS_ONLINE
protected static final java.lang.String GERMANBEERS_STAGED
protected static final java.lang.String SOFTDRINKS_ONLINE
protected static final java.lang.String SOFTDRINKS_STAGED
protected static final java.lang.String EUR
protected static final java.lang.String USD
protected CurrencyModel eur
protected CurrencyModel usd
protected BTGSegmentModel segmentA
protected BTGSegmentModel segmentB
protected BTGSegmentModel segmentC
protected BTGRuleModel segmentAOrderRule
protected BTGRuleModel segmentACartRule
protected ModelService modelService
protected TypeService typeService
protected UserService userService
protected ProductService productService
protected CategoryService categoryService
protected I18NService i18nService
protected CatalogService catalogService
protected FlexibleSearchService flexibleSearchService
protected DefaultRuleEvaluator ruleEvaluator
protected BTGEvaluationService btgEvaluationService
protected BTGResultService btgResultService
protected ExpressionService expressionService
protected ConditionEvaluatorRegistry conditionEvaluatorRegistry
public void setUp()
throws java.lang.Exception
java.lang.Exceptionprotected CatalogVersionModel getDrinksOnlineCatalogVersion()
protected CatalogVersionModel getDrinksCatalogVersion(java.lang.String catalogVersionName)
protected BTGRuleModel createRule(java.lang.String name)
protected BTGSegmentModel createSegment()
protected BTGSegmentModel createSegment(BTGConditionEvaluationScope scope, java.lang.String name, CatalogVersionModel catVersion)
protected void addToCart(java.lang.String... products)
throws java.lang.Exception
java.lang.Exceptionprotected void addToCartWithCatalog(java.lang.String catalogVersionName,
java.lang.String... products)
throws java.lang.Exception
java.lang.Exceptionprotected OrderModel placeTestOrder(java.lang.String... products) throws java.lang.Exception
java.lang.Exceptionprotected void createBTGData()
throws java.lang.Exception
java.lang.Exceptionprotected void createSegmentA()
protected void createSegmentB()
protected void createSegmentC()
protected void setCurrencies()
protected void placeAdditionalOrders()
throws java.lang.Exception
java.lang.Exceptionprotected void setWebSites()
protected void setCustomersAndUserGroups()
protected void setCatalogVersions()
protected void placeRandomOrdersNotFulfillingConditions(int number,
UserModel customer)
throws java.lang.Exception
java.lang.Exceptionprotected void placeRandomOrdersTotalSum(int number,
UserModel customer)
throws java.lang.Exception
java.lang.Exceptionprotected BTGOperatorModel createOperator(java.lang.String operatorString)
protected BTGConditionModel createExpression(BTGOperandModel leftOperand, BTGOperatorModel operator, BTGOperandModel rightOperand)
protected <T extends BTGLastOrdersOperandModel> T createOrderOperand(java.lang.Class<T> clazz, int lastOrders, java.lang.String name)
protected <T extends BTGLastOrdersOperandModel> T createOrderOperand(java.lang.Class<T> clazz, java.lang.String name)
protected BTGAbstractLiteralOperandModel createGenderLiteralOperand(Gender literalValue)
protected BTGAbstractLiteralOperandModel createDoubleLiteralOperand(java.lang.Double literalValue)
protected BTGAbstractLiteralOperandModel createIntLiteralOperand(java.lang.Integer literalValue)
protected BTGAbstractLiteralOperandModel createStringLiteralOperand(java.lang.String literalValue)
protected BTGAbstractLiteralOperandModel createBooleanLiteralOperand(boolean value)
protected BTGProductsInOrdersOperandModel createProductsInOrdersOperand(int lastOrders, java.lang.String name)
protected BTGReferencePriceOperandModel createPriceReferenceOperand(double value, java.lang.String currencyIso)
protected BTGReferenceProductsOperandModel createProductsOperand(java.lang.String... products)
protected BTGCategoriesInOrdersOperandModel createCategoriesinOrderOperand(java.lang.String name, boolean withSuperCat, int lastOrders)
protected BTGReferenceCategoriesOperandModel createBTGReferenceCategoriesOperand(java.lang.String... catNames)
protected BTGReferenceCountriesOperandModel createBTGReferenceCountriesOperandModel(java.lang.String... isoCodes)
protected BTGLastOrderDateOperandModel createLastOrderDateOperand(java.lang.String name)
protected BTGOperandModel createReferenceDateOperand(java.lang.String name, IntervalResolution unit, java.lang.Integer value)
protected BTGReferenceExactDateOperandModel createReferenceExactDateOperand(java.lang.String name, java.util.Date fromDate)
protected BTGNumberOfOrdersOperandModel createNumberOfOrdersOperand(java.util.Date operantFrom, java.util.Date operantTo, java.lang.String name)
protected BTGOperandModel createOperandModel(java.lang.String name, java.lang.Class clazz)
protected BTGRuleModel createRule(CatalogVersionModel catVersion, java.util.Collection<BTGConditionModel> conditions, java.lang.String code, BTGRuleType ruleType)
protected void removeUsersOrders(UserModel user)
protected BTGUserCountryOperandModel createCustomerCountryOperand(java.lang.String code)
protected BTGUserAddressPostalCodeOperandModel createCustomerPostalCodeOperand(java.lang.String code)
protected AttributeDescriptorModel getAttributeDescriptor(java.lang.Class modelClass, java.lang.String attributeQualifier)
protected BTGUserGenderOperandModel createCustomerGenderOperand(java.lang.String code)
protected BTGQuantityOfProductInCartOperandModel createQuantityOfProductInCartOperand(java.lang.String code, java.lang.String productName)
protected BTGQuantityOfProductInCartOperandModel createQuantityOfProductInCartOperand(java.lang.String code, java.lang.String catalogVersionName, java.lang.String productName)
protected void placeOrdersForSegmentA(UserModel customer) throws java.lang.Exception
java.lang.Exceptionprotected void placeOrdersForSegmentB(CustomerModel customer) throws java.lang.Exception
java.lang.Exceptionprotected void placeOrdersForUserC()
throws java.lang.Exception
java.lang.Exceptionprotected BTGConditionModel createExpressionInRuleAndSegment(BTGOperandModel leftOperand, BTGOperatorModel operator, BTGOperandModel rightOperand)
Copyright © 2018 SAP SE. All Rights Reserved.